Share via


IAuthenticationFilter.AuthenticateAsync Method (HttpAuthenticationContext, CancellationToken)

 

Authenticates the request.

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

Syntax

Task AuthenticateAsync(
    HttpAuthenticationContext context,
    CancellationToken cancellationToken
)
Task^ AuthenticateAsync(
    HttpAuthenticationContext^ context,
    CancellationToken cancellationToken
)
abstract AuthenticateAsync : 
        context:HttpAuthenticationContext *
        cancellationToken:CancellationToken -> Task
Function AuthenticateAsync (
    context As HttpAuthenticationContext,
    cancellationToken As CancellationToken
) As Task

Parameters

Return Value

Type: System.Threading.Tasks.Task

A Task that will perform authentication.

See Also

IAuthenticationFilter Interface
System.Web.Http.Filters Namespace

Return to top