Keep in mind nothing is bundled, you hand the server your public key, it then encrypts your token using it. I know it may feel a bit overkill but I do not want to amend the protocol here. So when you “show” the api key to the user actually show the encrypted api key. Your CLI can then decrypt it cause it holds the private key.
sam
(Sam Saffron)
16
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| User API keys specification | 69 | 38589 | September 22, 2025 | |
| Create apikey for user programmatically as admin | 8 | 2237 | February 26, 2024 | |
| Allow API use by regular users, not just admins | 6 | 1648 | February 14, 2023 | |
| Discourse Keybase Proof | 73 | 7372 | May 28, 2021 | |
| Use the Discourse API ruby gem | 0 | 24909 | July 15, 2014 |