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

Azure AD Connection - Access token validation failure. Invalid audience

trmcclain
Tera Contributor

I've been trying to get SN connected with Azure AD.

We've setup our servicenow instance, configured exactly as laid out in https://www.youtube.com/watch?v=3sfeAB7rXHI

 

We can see on the Azure side, SN is connecting successfully to it, but despite the app permissions set and the oauth token looking good, I'm consistently getting: "Insufficient Permissions. Please Check Oauth Token and scope permission." errors,

When I look at the steps of my flow, I see the response body coming back with the message: 

{"error":{"code":"InvalidAuthenticationToken","message":"Access token validation failure. Invalid audience.","innerError":{"date":"2024-02-09T16:14:10","request-id":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","client-request-id":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}}}

This happens regardless of if I trigger it through the Azure AD Spoke of IntegrationHub or if I build out a rest call and use the Azure AD credential alias.

 

Has anyone gotten past this? What am I missing?

 

trmcclain_0-1707509994298.png

trmcclain_1-1707510150038.png

trmcclain_2-1707510172240.png

trmcclain_3-1707510237952.png

 

 

Integrate an Azure account with a ServiceNow instance. This video covers: 00:00 Intro 00:26 Plugin requirement 01:17 Create an Azure application 01:50 Generate Azure client secret 02:30 Add API permissions in Azure 03:48 Configure the integration in Flow Designer #servicenow #servicenowdemo #azure
7 REPLIES 7

Joby
Tera Contributor

I had a similar error, but that was due to the scopes not matching the registered app. Did you select the appropriate scopes?

trmcclain
Tera Contributor

From everything I can measure, we have the correct scopes.

trmcclain_0-1707938881044.png

 

Joby
Tera Contributor

Were you able to resolve the issue? I think you are missing vso.graph