Relative Content

Tag Archive for c#azure-active-directoryblazor

Azure AD should support logging into the callback url in Blazor

@page “/authentication/{action}” @using Microsoft.AspNetCore.Components.WebAssembly.Authentication @using Microsoft.Extensions.Logging @attribute [AllowAnonymous] @layout EmptyLayout @inject AuthenticationStateProvider _authenticationStateProvider @inject ILogger<Authentication> Logger <RemoteAuthenticatorView Action=”@Action” OnLogInSucceeded=”OnLogInSucceeded” OnLogOutSucceeded=”OnLogOutSucceeded”> <LoggingIn> <SplashScreen Text=”Logging In…”></SplashScreen> </LoggingIn> <CompletingLoggingIn> <SplashScreen Text=”Completing Login”></SplashScreen> </CompletingLoggingIn> </RemoteAuthenticatorView> @code { [Parameter] public string Action { get; set; } private async Task OnLogInSucceeded(RemoteAuthenticationState remoteAuthenticationState) { Logger.LogInformation(“{Component}: OnLoginSucceeded start”, nameof(Authentication)); var authenticationState = await […]