Share via


HostAuthenticationFilter.AuthenticateAsync Method (HttpAuthenticationContext, CancellationToken)

 

Asynchronously authenticates the request.

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

Syntax

[DebuggerStepThroughAttribute]
public Task AuthenticateAsync(
    HttpAuthenticationContext context,
    CancellationToken cancellationToken
)
public:
[DebuggerStepThroughAttribute]
virtual Task^ AuthenticateAsync(
    HttpAuthenticationContext^ context,
    CancellationToken cancellationToken
) sealed
[<DebuggerStepThroughAttribute>]
abstract AuthenticateAsync : 
        context:HttpAuthenticationContext *
        cancellationToken:CancellationToken -> Task
[<DebuggerStepThroughAttribute>]
override AuthenticateAsync : 
        context:HttpAuthenticationContext *
        cancellationToken:CancellationToken -> Task
<DebuggerStepThroughAttribute>
Public Function AuthenticateAsync (
    context As HttpAuthenticationContext,
    cancellationToken As CancellationToken
) As Task

Parameters

Return Value

Type: System.Threading.Tasks.Task

The task that completes the authentication.

Implements

IAuthenticationFilter.AuthenticateAsync(HttpAuthenticationContext, CancellationToken)

See Also

HostAuthenticationFilter Class
System.Web.Http Namespace

Return to top