共用方式為


JwtBearerHandler.HandleAuthenticateAsync 方法

定義

在 'Authorization' 標頭中搜尋 'Bearer' 權杖。 如果找到 'Bearer' 權杖,則會使用 TokenValidationParameters 選項中的 set 進行驗證。

protected:
 override System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::AuthenticateResult ^> ^ HandleAuthenticateAsync();
protected override System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult> HandleAuthenticateAsync ();
override this.HandleAuthenticateAsync : unit -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult>
Protected Overrides Function HandleAuthenticateAsync () As Task(Of AuthenticateResult)

傳回

適用於