Azure Active Directory Authentication Blazor WASM: Microsoft.AspNetCore.Authorization.DefaultAuthorizationService[2] Authorization failed.

Havryliuk Vitalii 5 Reputation points
2023-02-11T17:58:51.36+00:00
After adding BlazorWASM authentication and publishing, the site stopped responding and returns the error: "info: Microsoft.AspNetCore.Authorization.DefaultAuthorizationService[2]
      Authorization failed. These requirements were not met:
      DenyAnonymousAuthorizationRequirement: Requires an authenticated user.". I registered two applications for backend (api management builded on Azure FunctionApp) and frontend (static web app) in azure active directory and performed all the necessary actions to configure authentication (which are written in the Microsoft documentation  
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,806 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,665 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,108 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,777 questions
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.