I am trying to request access token for my app using oauth code flow. I got client secret by email and followed the doc. However, I always see error in step 4 ‘Application Requests Access Token’:
Here are my steps:
login on nuki and authorize
got the authorization code
request token but failed
The response I got from #4:
"description": "The request requires user authentication",
Would you help to check and let me know what is wrong on the request? Or is there something wrong on the server side?
I am still having this issue. Anyone Nuki support can help?
The request looks correct for me. Error 401 would hint to a problem with the authentication though.
As Client ID worked in your first request please recheck client secret and authorization code. I will see if somebody else can take a look at it meanwhile.
It seems you have posted the output from your web browser. This isn’t the real answer from our server.
But anyway your request is not correct. You have to set a basic authentication header with your client_id (user) + client_secret (password).
Thanks for the reply. The output posted is from PostMan not web browser.
I got a different reply after adding a header “Authorization: Basic base64encoded’ClientID:ClientSerect’”
“error_description”: “No grant_type parameter found.”,
But I do have the grant_type in request:
Yes, it works finally. Thanks for your help. It seems I followed old doc which is not valid anymore.
Good to hear it works for you now. Could you link me to the document where you may have found outdated data so we can check where this might still be available?