共用方式為


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

定義

取得使用 JavaScript Interop 進行目前驗證的 。

protected public:
 virtual System::Threading::Tasks::ValueTask<System::Security::Claims::ClaimsPrincipal ^> GetAuthenticatedUser();
protected internal virtual System.Threading.Tasks.ValueTask<System.Security.Claims.ClaimsPrincipal> GetAuthenticatedUser ();
abstract member GetAuthenticatedUser : unit -> System.Threading.Tasks.ValueTask<System.Security.Claims.ClaimsPrincipal>
override this.GetAuthenticatedUser : unit -> System.Threading.Tasks.ValueTask<System.Security.Claims.ClaimsPrincipal>
Protected Friend Overridable Function GetAuthenticatedUser () As ValueTask(Of ClaimsPrincipal)

傳回

Task<TResult> 會在完成時傳回目前已驗證的使用者。

適用於