IAuthenticationFilter::AuthenticateAsync Method

Authenticates the request.

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

Task^ AuthenticateAsync(
	HttpAuthenticationContext^ context, 
	CancellationToken cancellationToken
)

Parameters

context
Type: System.Web.Http.Filters::HttpAuthenticationContext
The authentication context.
cancellationToken
Type: System.Threading::CancellationToken
The token to monitor for cancellation requests.

Return Value

Type: System.Threading.Tasks::Task
A Task that will perform authentication.
Show: