The CreatorCon Call for Content is officially open! Get started here.

Receive Access Token and Refresh Token with grant type of authorization_code

mansouriahmad
Giga Contributor

I am following the instructions here  https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0964444 to receive an access token and a refresh token. However, on Postman I receive unauthorized.

 

What should I do to resolve it?

 

Thanks

4 REPLIES 4

SinghBalwant
Kilo Guru

I would like to share a knowledge article (KB0725643) with you. By referring to this document, you can test your integration on Postman. The document provided in the URL offers more detailed information.

 

URL:  https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0725643

 

Please inform me if my feedback was useful and if it resolved your issue. If it did, please click the "Helpful" button below.

Thank you for your valuable feedback! It helps me enhance my responses and serve you better in the future.

mansouriahmad
Giga Contributor

Unfortunately, it does not resolve my issue since the article you shared are almost identical to the link I shared on my question!

SinghBalwant
Kilo Guru

Hi @mansouriahmad ,

 

Could you please confirm at which step it is failing? as I was able to get the token using same KB?

 

I think the first step is to retrieve the code which is working fine. However, the second step (sending a post request with (client_secret, client_id, code and redirect_url) does not work. At this moment, I receive unauthorized response from ServiceNow.