CookieAuthenticationHandler.HandleChallengeAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
若該認證方案在請求流程中涉及驗證互動(例如新增回應標頭,或將登入頁面或外部登入地點的 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
參數
- properties
- AuthenticationProperties
傳回
一項任務。