[QUERY] AuthenticateAsync() causes error invalid_client AADSTS650057 #47358
Labels
Azure.Identity
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-author-feedback
Workflow: More information is needed from author to address the issue.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Library name and version
Azure.Identity 1.13.1
Query/Question
I tryed to persist a AuthenticationRecord like described in section "Silently authenticate a user with AuthenticationRecord and TokenCachePersistenceOptions" of TokenCache
But I always ending in getting the error
Error details: error invalid_client error_description: AADSTS650057: Invalid resource. The client has requested access to a resource which is not listed in the requested permissions in the client's application registration.
Eroor shown in Browser by calling AuthenticationRecord authRecord = await credential.AuthenticateAsync();
I tryed to change the scope and the API Permissions in entry, currently I have File.ReadWrite.All, Application.ReadWrite.All, Directory.ReadWrite.All, AuthenticationContext.Read.All, offline_access, openid, profile, User.read.
But that did not help.
I have a WPF Desktop App and how may I able to Silently authenticate a user, so he must not login within the browser each time the application is restarted. (Currently I'm using InteractiveBrowserCredentialOptions)
Environment
Windows 11, .Net 8, WPF Desktop App
The text was updated successfully, but these errors were encountered: