Please visit DEMANDDRAFT.SHOP for quality of products...

Ad

Search This Blog

Thursday, January 5, 2023

AuthenticationStateProvider Class

Provides information about the authentication state of the current user.

Namespace: Microsoft.AspNetCore.Components.Authorization

AssemblyMicrosoft.AspNetCore.Components.Authorization.dll

public abstract class AuthenticationStateProvider

Derived 

Microsoft.AspNetCore.Components.Server.ServerAuthenticationStateProvider

Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationService<TRemoteAuthenticationState,TAccount,TProviderOptions>

Methods

GetAuthenticationStateAsync() : Asynchronously gets an AuthenticationState that describes the current user.

NotifyAuthenticationStateChanged(Task<AuthenticationState>) : Raises the AuthenticationStateChanged event.

Events

AuthenticationStateChanged :  An event that provides notification when the AuthenticationState has changed. For example, this event may be raised if a user logs in or out.


Source information collected from :https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.components.authorization.authenticationstateprovider?view=aspnetcore-6.0

No comments:

Post a Comment