Problem with Oauth Config
This content was last updated in 2023. It may still be useful, but could contain outdated information. Please confirm its accuracy before relying on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2021 03:48 AM
Hi Guys, I'm trying to setup OAuth for my api.
I have created the Application in my dev instance:
Now, when I call:
GET: https://dev83828.service-now.com/oauth_redirect.do
I got this message:
Your OAuth redirect failed. Please check if the redirect URL setup in your OAuth configuration matches your ServiceNow instance URL.
I have tried with, and without Redirect Url, as it is here: https://community.servicenow.com/community?id=community_article&sys_id=91ecea65dbd0dbc01dcaf3231f9619c3
But still not working, what am I doing wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2021 03:43 PM
Hi,
Your redirect URL should be https://<instance>.service-now.com/oauth_redirect.do where instance is your instance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2021 11:24 PM
Hi,
Yes, it is https://dev83828.service-now.com/oauth_redirect.do
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2021 09:16 AM
Your screenshot shows you've just set the redirect URL to your instance URL with no page selection. (https://dev83828.service-now.com)
You should be calling https://dev83828.service-now.com/oauth_token.do when you want a token, not the redirect URL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2021 11:40 PM
Hi,
In your current instance are you trying to configure OAuth as authentication mechanism to consume API of dev83828?
if yes then you should configure it as OAuth Provider
Something like this
OAuth 2.0 tutorial - create an OAuth provider and profile
Regards
Ankur