Always getting "access_denied" error in access token api /oauth/token even if all credentials are correct
I'm encountering an issue generating access and refresh tokens via the https://auth.videoask.com/oauth/token API. Despite double-checking all keys and credentials, I consistently receive the following error.
{
"error": "access_denied",
"error_description": "Unauthorized"
}
Can anyone offer assistance? Thank you in advance.
Page 1 / 1
Here's a Node.js server error insight.
Hey @radhe thanks for stopping by the community, just wanted to check is this for the VideoAsk API?
Step 1 is successful in obtaining the Temporary Authorization Code, but I'm struggling to get the Access and Refresh Tokens in step 2.
Let me know if you require further assistance. Thanks!
Thanks @radhe I’ve passed it over to the engineers to look into - will keep you posted!
Hi @radhe it looks like this is a bug, the engineers are investigating and as soon as I have another update I will post it here
Hey @Grace, any new updates on this?
Hi @radhe sorry for the radio silence, I know the team were working on it but I don’t think they have a fix yet - let me chase them!
Hi @Grace, just checking in for an update on this matter?
Hi @radhe it’s still being worked on, I don’t have an update yet but as soon as I do I will let you know
Hi @radhe the team are doing some testing and everything is working fine for them, so they want to check you have the required parameters that need to be sent in the oauth/token request.
Can you confirm/double check the following are correct:
code with the temporary code obtained from the previous authorization link
client_id do you have more than one developer app?
client_secret
grant_type (this looks correct)
code the temporary code is obtained from the redirect_uri after calling authorize as a query paramhttps://your-example-app.com/callback?code={temporary_authorization_code}
If this is all setup correctly, we may need move this conversation over to an email thread so they developers can get some more log information from you.
Hi @radhe would you be able to provide some more information for our team to continue their investigations?
Hi @radhe I hope you’re doing well! Were you able to solve the issue? Let us know if you still need help!