SSO Service now Authentication with Azure

vineetA60195277
Kilo Contributor

For SSO with Azure AD 
I am using a package called ‘aad_oauth’ from pub.dev.
Url for the package : https://pub.dev/packages/aad_oauth
On the Azure portal created a ServiceNow Enterprise Application with SAML Single sign on.
 
I am successfully getting the access token from the Azure AD authentication but when passing the same token in the ServiceNow GET API as Bearer Token.
 
Getting the below error.
{"error":{"message":"User Not Authenticated","detail":"Required to provide Auth information"},"status":"failure"}
 
401 Unauthrozied

3 REPLIES 3

shibasou
Kilo Sage

Hi.

As a way to deal with the 401 error, the following site has similar information.

 

site

 

↓Maybe not, but I will present the site...

Azure 401 Unauthorized Errorの理解と認証問題の解決策 | AI総合研究所 (ai-souken.com)

 

Please hit helpful and accept this as a solution if it solved your problem.

Thank you.

luffy3478
Tera Guru

AmalY
Tera Contributor

Hi,

I do have the same issue please if you figured out how to get access token from SAML SSO and get JWT Access token and use for other APIs working successfully please let me know