語言

CookieAuthenticationHandler.HandleChallengeAsync 方法

定義

若該認證方案在請求流程中涉及驗證互動(例如新增回應標頭,或將登入頁面或外部登入地點的 401 結果改為 302),則可覆寫此方法以處理 401 挑戰的疑慮。

protected:
 override System::Threading::Tasks::Task ^ HandleChallengeAsync(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
protected override System.Threading.Tasks.Task HandleChallengeAsync(Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
override this.HandleChallengeAsync : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
Protected Overrides Function HandleChallengeAsync (properties As AuthenticationProperties) As Task

參數

傳回

一項任務。

適用於