Microsoft.AspNetCore.Components.WebAssembly.Authentication Namespace

Provides types for securing Blazor WebAssembly apps with authentication.

Classes

AccessToken

Represents an access token for a given user and scopes.

AccessTokenNotAvailableException

An Exception that is thrown when an AuthorizationMessageHandler instance is not able to provision an access token.

AccessTokenRequestOptions

Represents the options for provisioning an access token on behalf of a user.

AccessTokenResult

Represents the result of trying to provision an access token.

AccountClaimsPrincipalFactory<TAccount>

Converts RemoteUserAccount into a ClaimsPrincipal.

ApiAuthorizationProviderOptions

Represents options for applications relying on a server for configuration.

AuthenticationStateDeserializationOptions

Provides options for configuring the JSON deserialization of the client's AuthenticationState from the server using PersistentComponentState.

AuthorizationMessageHandler

A DelegatingHandler that attaches access tokens to outgoing HttpResponseMessage instances. Access tokens will only be added when the request URI is within one of the base addresses configured using ConfigureHandler(IEnumerable<String>, IEnumerable<String>, String).

BaseAddressAuthorizationMessageHandler

A DelegatingHandler that attaches access tokens to outgoing HttpResponseMessage instances. Access tokens will only be added when the request URI is within the application's base URI.

InteractiveRequestOptions

Represents the request to the identity provider for logging in or provisioning a token.

NavigationManagerExtensions

Extensions for NavigationManager.

OidcProviderOptions

Represents options to pass down to configure the oidc-client.js library used when using a standard OpenID Connect (OIDC) flow.

RemoteAuthenticationActions

Represents the list of authentication actions that can be performed by the RemoteAuthenticatorViewCore<TAuthenticationState>.

RemoteAuthenticationApplicationPathsOptions

Represents the options for the paths used by the application for authentication operations. These paths are relative to the base.

RemoteAuthenticationContext<TRemoteAuthenticationState>

Represents the context during authentication operations.

RemoteAuthenticationDefaults

Represents default values for different configurable values used across the library.

RemoteAuthenticationOptions<TRemoteAuthenticationProviderOptions>

Options for remote authentication.

RemoteAuthenticationResult<TRemoteAuthenticationState>

Represents the result of an authentication operation.

RemoteAuthenticationService<TRemoteAuthenticationState,TAccount,TProviderOptions>

The default implementation for IRemoteAuthenticationService<TRemoteAuthenticationState> that uses JS interop to authenticate the user.

RemoteAuthenticationState

Represents the minimal amount of authentication state to be preserved during authentication operations.

RemoteAuthenticationUserOptions

Represents options to use when configuring the ClaimsPrincipal for a user.

RemoteAuthenticatorView

An RemoteAuthenticatorViewCore<TAuthenticationState> that uses RemoteAuthenticationState as the state to be persisted across authentication operations.

RemoteAuthenticatorViewCore<TAuthenticationState>

A component that handles remote authentication operations in an application.

RemoteUserAccount

A user account.

SignOutSessionStateManager

Handles CSRF protection for the logout endpoint.

Interfaces

IAccessTokenProvider

Represents a contract for services capable of provisioning access tokens for an application.

IRemoteAuthenticationService<TRemoteAuthenticationState>

Represents a contract for services that perform authentication operations for a Blazor WebAssembly application.

Enums

AccessTokenResultStatus

Represents the possible results from trying to acquire an access token.

InteractionType

The type of authentication request.

RemoteAuthenticationStatus

Represents the status of an authentication operation.

Remarks

For more information about enabling authentication in Blazor WebAssembly apps, see Secure an ASP.NET Core Blazor WebAssembly standalone app with the Authentication library.