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  
Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | .NET | Blazor
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} vote

Your answer

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