-
Notifications
You must be signed in to change notification settings - Fork 257
Description
Query/Question
I am able to log in and fetch the ID token, Access Token, and refresh token for an application built using the sample below. But, when the access token expires, the spring application sends a new POST request with the refresh token for a new token. This request is failing with the following error :
AADSTS90009: Application 'XXX' is requesting a token for itself. This scenario is supported only if the resource is specified using the GUID-based App Identifier.
For App registration in the Azure AD, I have chosen the application type as web, created a custom scope, and listed this new scope along with OpenID, profile, and offline_access in the client configuration.
Please let me know how to resolve this error
Setup (please complete the following information if applicable):
- OS: Windows/Linux
- IDE: IntelliJ
- Sample Path: aad/spring-security/servlet/oauth2/client-access-resource-server/client/src/main/resources/application.yml and
-sample Path: (https://github.com/Azure-Samples/azure-spring-boot-samples/tree/spring-cloud-azure_v4.4.1/aad/spring-security/servlet/oauth2/client-access-multiple-resource-server/client)
/pom.xml - Library/Libraries: spring-boot-starter-oauth2-client
Metadata
Metadata
Assignees
Labels
Type
Projects
Status