Freigeben über


HostAuthenticationFilter.ChallengeAsync Method (HttpAuthenticationChallengeContext, CancellationToken)

 

Asynchronously challenges an authentication.

Namespace:   System.Web.Http
Assembly:  System.Web.Http.Owin (in System.Web.Http.Owin.dll)

Syntax

public Task ChallengeAsync(
    HttpAuthenticationChallengeContext context,
    CancellationToken cancellationToken
)
public:
virtual Task^ ChallengeAsync(
    HttpAuthenticationChallengeContext^ context,
    CancellationToken cancellationToken
) sealed
abstract ChallengeAsync : 
        context:HttpAuthenticationChallengeContext *
        cancellationToken:CancellationToken -> Task
override ChallengeAsync : 
        context:HttpAuthenticationChallengeContext *
        cancellationToken:CancellationToken -> Task
Public Function ChallengeAsync (
    context As HttpAuthenticationChallengeContext,
    cancellationToken As CancellationToken
) As Task

Parameters

Return Value

Type: System.Threading.Tasks.Task

The task that completes the challenge.

Implements

IAuthenticationFilter.ChallengeAsync(HttpAuthenticationChallengeContext, CancellationToken)

See Also

HostAuthenticationFilter Class
System.Web.Http Namespace

Return to top