Access token validation failure. Invalid audience

Chegus Hinduraj 0 Reputation points
2023-09-25T18:08:44.2133333+00:00

Hi Support Team,

i am working on integrating the Azure AD cloud with Spring boot, created the separate web API, from the web application (client application), we are able to redirect to Azure for authorization, after successful authorization it is redirecting the original requested url end point , we are retrieving the token from the end point and trying to use the access token to call the graph API , but we are getting error as :

"Access token validation failure. Invalid audience."

in the application.yml file unable to provide the scope value as [ https://graph.microsoft.com/.default]( https://graph.microsoft.com/.default

), it is always taking the default scopes like cope=openid%20profile%20offline_access.

due to scope issue , i am unable to use the generated access token to call any graph api, please help me to resolve this issue.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,784 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,291 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.