Oauth 2.0 authentication is throwing an error like access_denied, No audience parameter was provided

vivek chelpuri2
Tera Contributor

We are trying to integrate servicenow with solify with Oauth 2.0 as Outbound rest API integration. We have received the client ID and client secret and we have created Oauth provider profile but when we try to Get Oauth token, we are getting the below error message.

 

"OAuth flow failed. Verify the configurations and try again. Error detail:access_denied, No audience parameter was provided, and no default audience has been configured"

 

Please provide your insights on where we can provide the audience in ServiceNow.

 

 

6 REPLIES 6

Manmohan K
Tera Sage

Hi @vivek chelpuri2 ,

 

The audience parameter exists as part of the OAuth2.0 protocol. 

The audience (presented as the aud claim in the access token) defines the intended consumer of the token.

This is typically the resource server that a client (Application) would like to access.

It can be added to the request to authorize i.e. audience: 'https://test-api'

Please make changes to your request body to include audience parameter as OAuth 2.0 is expecting that parameter.

 

Please mark response as helpful and correct if it resolves the issue

Thanks !!!

 

 

Hello Manmohan,

             Thanks!! for your response. Can you please guide us on where we can add the audience parameter on the Oauth provider profile.

 

Thanks,

vivek

       

We need to get the Oauth token

Did you find the solution to this?

I'm having the same problem.