IRemoteAuthenticationService<TRemoteAuthenticationState> Interface

Definition

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

C#
public interface IRemoteAuthenticationService<TRemoteAuthenticationState> where TRemoteAuthenticationState : RemoteAuthenticationState

Type Parameters

TRemoteAuthenticationState

The state to be persisted across authentication operations.

Derived

Methods

CompleteSignInAsync(RemoteAuthenticationContext<TRemoteAuthenticationState>)

Completes the sign in operation for a user when it is performed outside of the application origin via a redirect operation followed by a redirect callback to a page in the application.

CompleteSignOutAsync(RemoteAuthenticationContext<TRemoteAuthenticationState>)

Completes the sign out operation for a user when it is performed outside of the application origin via a redirect operation followed by a redirect callback to a page in the application.

SignInAsync(RemoteAuthenticationContext<TRemoteAuthenticationState>)

Signs in a user.

SignOutAsync(RemoteAuthenticationContext<TRemoteAuthenticationState>)

Signs out a user.

Applies to

Product Versions
ASP.NET Core 3.1, 5.0, 6.0, 7.0, 8.0, 9.0