Microsoft.AspNetCore.Components.Authorization Namespace
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 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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for