AuthenticationHandler<TOptions>.HandleChallengeAsync 方法

定義

如果有問題的驗證配置在要求流程中處理驗證互動,請覆寫這個方法來處理 401 項挑戰問題。 (例如新增回應標頭,或變更 401 結果為登入頁面 302 或外部登入位置)。

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

參數

傳回

工作。

適用於