共用方式為


PolicySchemeHandler.HandleChallengeAsync(AuthenticationProperties) 方法

定義

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

protected:
 override System::Threading::Tasks::Task ^ HandleChallengeAsync(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
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

參數

傳回

工作。

適用於