Share via


ServerAuthenticationStateProvider Class

Definition

An AuthenticationStateProvider intended for use in server-side Blazor.

public ref class ServerAuthenticationStateProvider : Microsoft::AspNetCore::Components::Authorization::AuthenticationStateProvider, Microsoft::AspNetCore::Components::Authorization::IHostEnvironmentAuthenticationStateProvider
public class ServerAuthenticationStateProvider : Microsoft.AspNetCore.Components.Authorization.AuthenticationStateProvider, Microsoft.AspNetCore.Components.Authorization.IHostEnvironmentAuthenticationStateProvider
type ServerAuthenticationStateProvider = class
    inherit AuthenticationStateProvider
    interface IHostEnvironmentAuthenticationStateProvider
Public Class ServerAuthenticationStateProvider
Inherits AuthenticationStateProvider
Implements IHostEnvironmentAuthenticationStateProvider
Inheritance
ServerAuthenticationStateProvider
Derived
Implements

Constructors

Name Description
ServerAuthenticationStateProvider()

Methods

Name Description
GetAuthenticationStateAsync()

Asynchronously gets an AuthenticationState that describes the current user.

NotifyAuthenticationStateChanged(Task<AuthenticationState>)

Raises the AuthenticationStateChanged event.

(Inherited from AuthenticationStateProvider)
SetAuthenticationState(Task<AuthenticationState>)

Supplies updated authentication state data to the AuthenticationStateProvider.

Events

Name Description
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.

(Inherited from AuthenticationStateProvider)

Applies to