ServiceAuthenticationFilter::AuthenticateAsync Method (HttpAuthenticationContext^, CancellationToken)

 

Asynchronously authenticates the current request by looking for an OWIN authentication middleware with the given M:AuthenticationType and delegating authentication to that middleware.

Namespace:   Microsoft.WindowsAzure.Mobile.Service.Security
Assembly:  Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)

public:
[DebuggerStepThroughAttribute]
virtual Task^ AuthenticateAsync(
	HttpAuthenticationContext^ context,
	CancellationToken cancellationToken
)

Parameters

context
Type: System.Web.Http.Filters::HttpAuthenticationContext^

The authentication context.

cancellationToken
Type: System.Threading::CancellationToken

The cancellation token.

Return Value

Type: System.Threading.Tasks::Task^

The task that completes the authentication.

Return to top
Show: