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
context
Type: System.Web.Http.Filters.HttpAuthenticationContextThe authentication context.
cancellationToken
Type: System.Threading.CancellationTokenThe token to monitor for cancellation requests.
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