Skip to content

[QUERY] Issue while fetching a new access token using refresh token in a spring boot client #727

@smitha0202

Description

@smitha0202

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):

Metadata

Metadata

Assignees

No one assigned

    Labels

    azure-springAll azure-spring related issues

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions