共用方式為


OpenIdConnectHandler.HandleUnauthorizedAsync(ChallengeContext) 方法

定義

回應 401 挑戰。 將 OpenIdConnect 訊息傳送至「身分識別授權單位」,以取得身分識別。

protected:
 override System::Threading::Tasks::Task<bool> ^ HandleUnauthorizedAsync(Microsoft::AspNetCore::Http::Features::Authentication::ChallengeContext ^ context);
protected override System.Threading.Tasks.Task<bool> HandleUnauthorizedAsync (Microsoft.AspNetCore.Http.Features.Authentication.ChallengeContext context);
override this.HandleUnauthorizedAsync : Microsoft.AspNetCore.Http.Features.Authentication.ChallengeContext -> System.Threading.Tasks.Task<bool>
Protected Overrides Function HandleUnauthorizedAsync (context As ChallengeContext) As Task(Of Boolean)

參數

傳回

適用於