共用方式為


RemoteAuthenticationService<TRemoteAuthenticationState,TAccount,TProviderOptions>.CompleteSignInAsync 方法

定義

透過重新導向作業在應用程式原始來源之外執行時,完成使用者的登入作業,後面接著重新導向回呼至應用程式中的頁面。

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Components::WebAssembly::Authentication::RemoteAuthenticationResult<TRemoteAuthenticationState> ^> ^ CompleteSignInAsync(Microsoft::AspNetCore::Components::WebAssembly::Authentication::RemoteAuthenticationContext<TRemoteAuthenticationState> ^ context);
public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationResult<TRemoteAuthenticationState>> CompleteSignInAsync (Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationContext<TRemoteAuthenticationState> context);
abstract member CompleteSignInAsync : Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationContext<'RemoteAuthenticationState (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState)> -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationResult<'RemoteAuthenticationState>>
override this.CompleteSignInAsync : Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationContext<'RemoteAuthenticationState (requires 'RemoteAuthenticationState :> Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationState)> -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.WebAssembly.Authentication.RemoteAuthenticationResult<'RemoteAuthenticationState>>
Public Overridable Function CompleteSignInAsync (context As RemoteAuthenticationContext(Of TRemoteAuthenticationState)) As Task(Of RemoteAuthenticationResult(Of TRemoteAuthenticationState))

參數

傳回

Task<RemoteAuthenticationResult<TRemoteAuthenticationState>>

驗證作業的結果。

實作

適用於