Getting Access Denied while getting access token

Mitalee
Kilo Contributor

Hi,

I am trying to login using OAuth2.0. I received the auth code. Using the same auth code I tried to get the access token but getting error as below:

{
"error_description": "access_denied",
"error": "server_error"
}
 
Thanks & Regards,

Mitalee Jadhav

 

7 REPLIES 7

Hi Mitalee,

So are you able to get the access token from ServiceNow when trying in Postman?

what are the details you are sending? like the body, endpoint etc

screenshot below of postman I tried and able to get the token

Header ->

Content-Type -> application/x-www-form-urlencoded

Body -> send the key value pairs as below

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Mitalee,

Any update on this?
Can you mark my answer as correct, 👍 helpful if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Mitalee,

Any update on this?
Can you mark my answer as correct, 👍 helpful if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader