共用方式為


JwtAuthenticationAttribute.ChallengeAsync Method

Definition

public System.Threading.Tasks.Task ChallengeAsync (System.Web.Http.Filters.HttpAuthenticationChallengeContext context, System.Threading.CancellationToken cancellationToken);
abstract member ChallengeAsync : System.Web.Http.Filters.HttpAuthenticationChallengeContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ChallengeAsync : System.Web.Http.Filters.HttpAuthenticationChallengeContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ChallengeAsync (context As HttpAuthenticationChallengeContext, cancellationToken As CancellationToken) As Task

Parameters

context
System.Web.Http.Filters.HttpAuthenticationChallengeContext
cancellationToken
CancellationToken

Returns

Implements

System.Web.Http.Filters.IAuthenticationFilter.ChallengeAsync(System.Web.Http.Filters.HttpAuthenticationChallengeContext,System.Threading.CancellationToken)

Applies to