Silent token acquisition fails ServerError: AADB2C90205
opticyclic opened this issue · 3 comments
Cloning the project and running it works as expected.
After following the tutorial steps to configure the Azure Portal and adding my own details I am able to sign up and log in and get the message:
Hello User Name
User 'User Name' logged-in
However, when I click the "Call API" button the login screen pops up again and the following is output to the console:
Silent token acquisition fails. Acquiring token using popup authPopup.js:42:15
ServerError: AADB2C90205: This application does not have sufficient permissions against this web resource to perform the operation.
Nothing appears to have hit the local API.
This makes me think that there is some magic config in Azure that is causing this issue.
However, I can't work out what is causing it.
Screenshots in the README of the relevant config in the Azure backend that the demo uses would be useful to help debug issues like this.
It seems like it might be related to Scopes and Permission Grants
MicrosoftDocs/azure-docs#53530 (comment)
@opticyclic hard to know the cause without seeing your configuration. In particular, what scope are you using when requesting the token?
Closing due to inactivity. Let us know if you need help.