OAuth Redirect URL: oauth_redirect.do - Getting a 401 error

Kevin139
Mega Contributor

Hello,

I'm attempting to authenticate my Service Now developer instance with the app I've installed on this instance.

Here's my configuration for the app in my Application Registry:

find_real_file.png

I can confirm that my Authorization URL and Token URL work correctly as I can connect via Postman and step through the code in Visual Studio. The problem seems to be the Redirect URL: The oauth_redirect.do - Is there configuration I need to complete to make this a valid end point? It gives me a 401 error every time I navigate to it.

find_real_file.png

Is there some documentation to explain what's going on behind the scenes when this 401 error comes back?

What is the order of operations? Here's what I think it is:

1) Connect to the Authorization URL to get the Authorization Code?

2) Send the Authorization Code to the Redirect URL?

3) After successfully getting the Auth Code, Service Now sends a request to the Token URL for the Access Token?

4) The token becomes visible on the 'Manage Tokens' page?

 

Is there a test I can perform to make sure the Redirect URL is actually working correctly? 

 

Thanks,

 

Kevin

 

 

 

3 REPLIES 3

Antonio Ghirald
Tera Contributor

Kevin,

Have you solved it by yourself? I am facing the same unauthorized message error.

Hi any update on this , please help