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>)

登出使用者。

適用於