- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2021 08:39 PM
Hi,
I am getting HTTP Error 401 - Unauthorized when I click Get Oauth token from rest message. Am I missing anything?
Thanks,
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2021 01:10 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2021 12:04 AM
Hi,
Please make sure you have entered correct Client ID and Client Secret. Also the grant type selected is same in your another system.
Redirect URL should contain your local ServiceNow instance url and Tokan URL is your provider instance url.
Thanks,
Anil Lande
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2021 07:25 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2021 11:21 PM
Can you add more details , where did you setup the user profile,
Error is coming due to incorrect detail mentioned .

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2021 10:30 PM
Hi,
You are using grant type 'Authorization Code', in this case you need to provide authorization URL as well.
I did setup on my two personal instances and it worked fine:
Below configurations are needed in your instance Client Instance:
Authorization URL: https://instance_name.service-now.com/oauth_auth.do
Also you have to copy same redirect url to your provider application setup. (Redirect URL shoul be same in both instances)
As the grant type is 'Authorization Code', when you click on 'Get OAuth Token' Related Link it will redirect you to Authorization page of provider instance, once you allow access by entering user credentials it will redirect back to your instance and will make another call for ACCCESS TOKEN.
Please Mark helpful and correct answer if this resolves your issue.
Thanks,
Anil Lande
Thanks
Anil Lande