Can someone please show me how my url should look like with the paramters. I am also confused what exactly is client_id here? Is it the id of the user whose api needs to created or is the username? Also can I use any url as redirect_url? For the record I have added this redirect url in my admin settings.
@joffreyjaffeux That’s not the same “API” that @Umer_Mirza was asking about. I put “API” in quote because it may not exist?
The User API keys specification RFC talks about the use case of allowing users themselves the ability to request and API key so that a third party developed app may perform actions on their behalf. You would never want to give a third party your site API key because they would have full access.
I would ask this question in User API keys specification but that topic is closed. Does the API that @sam proposed in that post actually exist or not?
Thanks @joffreyjaffeux. I was drafting a similar message but I only had the code from the mobile app. These other code snippets are very useful.
When I tried this API against my own server using Postman, I kept getting a 400 error with no details. My Ruby is a little rusty but I’ll dig into the code more but if you happen to know why a 400 might happen that would be helpful.
So, looking at the source code, client-id is 32 random bytes and nonce is 16 random bytes.
Edit: It’s actually 32 & 16 nybbles, but the code generating it is called randomBytes(32)