blazor-server-aad-sample icon indicating copy to clipboard operation
blazor-server-aad-sample copied to clipboard

Sample on how to use blazor server with AAD authentication

Results 7 blazor-server-aad-sample issues
Sort by recently updated
recently updated
newest added

Hi I have successfully implemented the sample code on a local project and am able to retrieve the bearer token via the WeatherForecast service class. The references to AzureAd authentication...

In this demo what is the resource (in the settings, scope, resource) to be set to? Would that be the https://.onmicrosoft.com/{guid}? (API App registration in Azure)? Would this example also...

Why can we not just inject and initialize the `TokenProvider` in `_Host.cshtml` directly? What is the reason for doing all the extra work with the `InitialApplicationState` class? Thanks.

HttpContext.GetTokenAnsync("access_token") does not return a valid JWT token (as it does for "refresh_token" and "id_token"). So, how can it be used in a Microsoft Graph call using the OnBehalfOfProvider, like...

Can this example be expanded to include recommended logic for using the refresh token upon access token expiration? Because a Blazor server http request is long-lived, expired tokens is likely...

We need to keep this sample cross-linked in the docs just a bit longer. For the time being and for consistency, is it ok if this sample uses "TokenProvider" singular...

I cant get this to work in my Blazor, server side, in .NET 8