Share via


IRemoteAuthenticationService<TRemoteAuthenticationState> 接口

定义

表示对 Blazor WebAssembly 应用程序执行身份验证操作的服务的协定。

generic <typename TRemoteAuthenticationState>
 where TRemoteAuthenticationState : RemoteAuthenticationStatepublic interface class IRemoteAuthenticationService
public interface IRemoteAuthenticationService<TRemoteAuthenticationState> where TRemoteAuthenticationState : RemoteAuthenticationState
type IRemoteAuthenticationService<'RemoteAuthenticationState (requires 'RemoteAuthenticationState :> RemoteAuthenticationState)> = interface
Public Interface IRemoteAuthenticationService(Of TRemoteAuthenticationState)

类型参数

TRemoteAuthenticationState

要跨身份验证操作保留的状态。

派生

方法

CompleteSignInAsync(RemoteAuthenticationContext<TRemoteAuthenticationState>)

在应用程序源外部执行用户登录操作时,通过重定向操作,然后重定向到应用程序中的页面,完成该用户的登录操作。

CompleteSignOutAsync(RemoteAuthenticationContext<TRemoteAuthenticationState>)

当用户在应用程序源外部执行注销操作时,通过重定向操作,然后重定向回调到应用程序中的页面,完成注销操作。

SignInAsync(RemoteAuthenticationContext<TRemoteAuthenticationState>)

让用户登录。

SignOutAsync(RemoteAuthenticationContext<TRemoteAuthenticationState>)

注销用户。

适用于