8using System.Security.Claims;
9using System.Threading.Tasks;
10using Microsoft.AspNetCore.Components.Authorization;
27 private AuthenticationState AuthenticationState {
get;
set; }
35 return Task.FromResult(AuthenticationState);
44 AuthenticationState =
new AuthenticationState(principal);
45 NotifyAuthenticationStateChanged(Task.FromResult(AuthenticationState));
Basic implementation of AuthenticationStateProvider
CslaAuthenticationStateProvider()
Creates an instance of the type.
override Task< AuthenticationState > GetAuthenticationStateAsync()
Gets the authentication state.
void SetPrincipal(ClaimsPrincipal principal)
Sets the principal representing the current user identity.