ServiceAuthenticationFilter.ChallengeAsync Method (HttpAuthenticationChallengeContext, CancellationToken)

 

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

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

public virtual Task ChallengeAsync(
	HttpAuthenticationChallengeContext context,
	CancellationToken cancellationToken
)

Parameters

context
Type: System.Web.Http.Filters.HttpAuthenticationChallengeContext

The context.

cancellationToken
Type: System.Threading.CancellationToken

The cancellation token.

Return Value

Type: System.Threading.Tasks.Task

The task that completes the challenge.

Return to top
Show: