Receive Access Token and Refresh Token with grant type of authorization_code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2023 02:41 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2023 07:56 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2023 06:26 AM
Unfortunately, it does not resolve my issue since the article you shared are almost identical to the link I shared on my question!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2023 07:35 AM
Hi @mansouriahmad ,
Could you please confirm at which step it is failing? as I was able to get the token using same KB?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2023 08:28 AM
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.