Could you please check your scope of permission in appsettings? By default there only user.read scope
Blazor server application with SSO using Microsoft Entra ID. Getting "Need admin approval" screen on login.
Hello,
We recently started developing a small web app using Blazor. We chose Blazor server app and want to have kind of an automatic log-in for users in the future, so for that purpose we chose to use Microsoft Entra ID as we already have it configured in our organization.
We did everything according to this tutorial. We created a Blazor application, registered it to our Entra ID tenant using msidentity-app-sync tool as instructed in the guide. Everything went fine, we see the app registered in Entra ID administration panel, and now, once we run the project on our local machine, we get redirected to Microsoft log-in screen. After inputting user credentials and proceeding, we get an error message saying "Need admin approval" (attaching a screenshot too).
We are a bit in a deadend here, as it is not really clear, what needs to be done here. What kind of permissions or to whom we need to grant them to prevent this?
Any kind of help will be greatly appreciated!
Microsoft Security | Microsoft Entra | Microsoft Entra ID
3 answers
Sort by: Most helpful
-
-
Bruce (SqlWork.com) 82,146 Reputation points Volunteer Moderator
2024-01-15T18:48:59.44+00:00 This is a message from azure login and controlled by the application configuration in azure ad. To use the azure token to access resources on the behalf of the user, the azure admin must grant the application these rights. In addition the user must authorize the application, but the azure admin may pre-grant this authorization. for you app to access resources, you must configure api access, and assign to a scope. on login the app needs request this scope.
-
Constantine Vassilev 0 Reputation points2024-02-29T16:47:21.41+00:00 .NET 5.0 not supported anymore. How to update from source code?