The CreatorCon Call for Content is officially open! Get started here.

Not able to connect Servicenow with Azure Graph API - InvalidAuthenticationToken, InvalidAudience

Eloy3
Giga Guru

https://www.servicenow.com/community/developer-articles/microsoft-azure-ad-graph-api-to-servicenow-i...

 

I`m also facing the same issue posted on this Post: https://www.servicenow.com/community/developer-articles/microsoft-azure-ad-graph-api-to-servicenow-i... , we are having the same problem, we are receiving code:403 - Forbidden username/password combo.

"error":{"code":"InvalidAuthenticationToken","message":"Access token validation failure. Invalid audience."

I`ve just test passing the token as HTTP Headers like this:

Eloy3_0-1705580235079.png

 

But checking the Outbound HTTP logs I see several differences between the token we were getting and the token I can see/take from Graph Explorer. 

Could be a problem of my Application Registries... or something else.

Please if you found something let me know 

Eloy3_1-1705580234316.png

 

 

Thank you

1 ACCEPTED SOLUTION

Eloy3
Giga Guru

Problem solved, on Token URL it needs to have: https://login.microsoftonline.com/(...)/oauth2/v2.0/token, after that everything works fine.

View solution in original post

1 REPLY 1

Eloy3
Giga Guru

Problem solved, on Token URL it needs to have: https://login.microsoftonline.com/(...)/oauth2/v2.0/token, after that everything works fine.