AuthenticationHandler<TOptions>.ChallengeAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ChallengeAsync(AuthenticationProperties) |
质询当前请求。 |
ChallengeAsync(ChallengeContext) |
ChallengeAsync(AuthenticationProperties)
- Source:
- AuthenticationHandler.cs
- Source:
- AuthenticationHandler.cs
- Source:
- AuthenticationHandler.cs
质询当前请求。
public:
virtual System::Threading::Tasks::Task ^ ChallengeAsync(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public System.Threading.Tasks.Task ChallengeAsync (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
public System.Threading.Tasks.Task ChallengeAsync (Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties);
abstract member ChallengeAsync : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
override this.ChallengeAsync : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
Public Function ChallengeAsync (properties As AuthenticationProperties) As Task
参数
- properties
- AuthenticationProperties
包含 AuthenticationProperties 随身份验证一起到达的额外元数据的 。
返回
任务。
实现
适用于
ChallengeAsync(ChallengeContext)
public:
virtual System::Threading::Tasks::Task ^ ChallengeAsync(Microsoft::AspNetCore::Http::Features::Authentication::ChallengeContext ^ context);
public System.Threading.Tasks.Task ChallengeAsync (Microsoft.AspNetCore.Http.Features.Authentication.ChallengeContext context);
abstract member ChallengeAsync : Microsoft.AspNetCore.Http.Features.Authentication.ChallengeContext -> System.Threading.Tasks.Task
override this.ChallengeAsync : Microsoft.AspNetCore.Http.Features.Authentication.ChallengeContext -> System.Threading.Tasks.Task
Public Function ChallengeAsync (context As ChallengeContext) As Task
参数
- context
- ChallengeContext