OAuthHandler<TOptions>.HandleChallengeAsync 方法

定义

如果有问题的身份验证方案将身份验证交互作为请求流的一部分进行处理,请重写此方法来处理 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);
override this.HandleChallengeAsync : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
Protected Overrides Function HandleChallengeAsync (properties As AuthenticationProperties) As Task

参数

返回

任务。

适用于