Get Oauth token gives HTTP Error 401 - Unauthorized

Khalnayak
Kilo Sage

Hi all,

I have created an app registry for the Service Graph Connector for Microsoft Intune app in ServiceNow.

I have created an app registry in azure too and all the setup looks fine.

But when clicking on Get Oauth token I  am getting the HTTP Error 401 - Unauthorized.

I dont know why though, as I have the exact same setup for my dev instance and that is working fine.

Just when setting it up in test it is giving this error.

The only  difference between the 2 instances that I know of, is that test is SSO using Azure AD and Dev is not.

When i first clicked Get Oauth token, it asked me to login, then asked for admin approval, which I got an admin user to enter, and after that I am seeing this error.

 

find_real_file.png

 

Can someone advise please?

find_real_file.png

Vivektietsood
Kilo Sage

this is not helpful sorry. 

Ankur Bawiskar
Tera Patron

Hi,

Error 401 means username and password is incorrect

Regards
Ankur

Hi Ankur,

Are you referring to the credentials for Azure AD which are entered when clicked on Get Oauth token?

Every time I click on Get Oauth token it gives me the 401 error, doesnt even prompt me for which account to use now.

I have tried clearing cache as cache.do but same thing.

The credentials are correct as far as I am aware, and they worked for the dev instance so not sure why it is not working for test?