Azure-Samples / azure-spring-boot-samples

Spring Cloud Azure Samples
MIT License
173 stars 231 forks source link

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

Open smitha0202 opened 1 year ago

smitha0202 commented 1 year ago

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

Netyyyy commented 1 year ago

Hi @smitha0202 , thanks for reaching out. We have received your submission and will take it into consideration. We appreciate your input and will review this matter as soon as possible. Please feel free to provide any additional information or context that you think may be helpful. We'll keep you updated on the progress of our review. Thank you for your contribution to improving our project.