语言

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

参数

返回

任务。

适用于