Microsoft.AspNetCore.Components.Authorization Namespace

Provides classes for retrieving information about the current authentication state.

Classes

AuthenticationState

Provides information about the currently authenticated user, if any.

AuthenticationStateProvider

Provides information about the authentication state of the current user.

AuthorizeRouteView

Combines the behaviors of AuthorizeView and RouteView, so that it displays the page matching the specified route but only if the user is authorized to see it.

Additionally, this component supplies a cascading parameter of type Task<TResult>, which makes the user's current authentication state available to descendants.

AuthorizeView

Displays differing content depending on the user's authorization status.

AuthorizeViewCore

A base class for components that display differing content depending on the user's authorization status.

CascadingAuthenticationState

Interfaces

IHostEnvironmentAuthenticationStateProvider

An interface implemented by AuthenticationStateProvider classes that can receive authentication state information from the host environment.

Delegates

AuthenticationStateChangedHandler

A handler for the AuthenticationStateChanged event.

Remarks

For more information about Blazor authorization, see ASP.NET Core Blazor authentication and authorization.