Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Secure an ASP.NET Core Blazor Web App with Microsoft Entra ID

$
0
0

I've checked out Microsofts Secure an ASP.NET Core Blazor Web App with Microsoft Entra ID example / GitHub

In program.cs authentication is configured as follows.

builder.Services.AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme)    .AddMicrosoftIdentityWebApp(builder.Configuration.GetSection("AzureAd"));builder.Services.AddAuthorization();

If I log in and click on the weather button a cookie is attached to the request.

I don't understand where that cookie is coming from. I built a blazor web app from scratch with basically the same configuration but I can't get the authentication to work. I can't find any documentation either. How does this example work?

enter image description here


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>