Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

AuthenticationStateProvider Class

Definition

Namespace:
Microsoft.AspNetCore.Components.Authorization
Assembly:
Microsoft.AspNetCore.Components.Authorization.dll
Package:
Microsoft.AspNetCore.Components.Authorization v10.0.0
Package:
Microsoft.AspNetCore.Components.Authorization v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.Components.Authorization v3.0.3
Package:
Microsoft.AspNetCore.Components.Authorization v3.1.18
Package:
Microsoft.AspNetCore.Components.Authorization v5.0.9
Package:
Microsoft.AspNetCore.Components.Authorization v6.0.6
Package:
Microsoft.AspNetCore.Components.Authorization v7.0.5
Package:
Microsoft.AspNetCore.Components.Authorization v8.0.19
Package:
Microsoft.AspNetCore.Components.Authorization v9.0.8
Source:
AuthenticationStateProvider.cs
Source:
AuthenticationStateProvider.cs
Source:
AuthenticationStateProvider.cs
Source:
AuthenticationStateProvider.cs
Source:
AuthenticationStateProvider.cs
Source:
AuthenticationStateProvider.cs
Source:
AuthenticationStateProvider.cs
Source:
AuthenticationStateProvider.cs
Source:
AuthenticationStateProvider.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Provides information about the authentication state of the current user.

public ref class AuthenticationStateProvider abstract
public abstract class AuthenticationStateProvider
type AuthenticationStateProvider = class
Public MustInherit Class AuthenticationStateProvider
Inheritance
AuthenticationStateProvider
Derived

Constructors

Name Description
AuthenticationStateProvider()

Methods

Name Description
GetAuthenticationStateAsync()

Asynchronously gets an AuthenticationState that describes the current user.

NotifyAuthenticationStateChanged(Task<AuthenticationState>)

Raises the AuthenticationStateChanged event.

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.

Applies to


Feedback

Was this page helpful?