ServiceAuthenticationFilter.ChallengeAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ChallengeAsync(IAuthenticationManager) |
Issues an authentication challenge to the current request by looking for an OWIN authentication middleware with the given AuthenticationType and delegating the challenge generation to that middleware. |
ChallengeAsync(HttpAuthenticationChallengeContext, CancellationToken) |
Issues an authentication challenge to the current request by looking for an OWIN authentication middleware with the given AuthenticationType and delegating the challenge generation to that middleware. |
ChallengeAsync(IAuthenticationManager)
Issues an authentication challenge to the current request by looking for an OWIN authentication middleware with the given AuthenticationType and delegating the challenge generation to that middleware.
protected virtual System.Threading.Tasks.Task ChallengeAsync (Microsoft.Owin.Security.IAuthenticationManager authenticationManager);
abstract member ChallengeAsync : Microsoft.Owin.Security.IAuthenticationManager -> System.Threading.Tasks.Task
override this.ChallengeAsync : Microsoft.Owin.Security.IAuthenticationManager -> System.Threading.Tasks.Task
Protected Overridable Function ChallengeAsync (authenticationManager As IAuthenticationManager) As Task
Parameters
- authenticationManager
- IAuthenticationManager
The IAuthenticationManager to use for creating the challenge.
Returns
A Task representing the challenge operation.
Applies to
ChallengeAsync(HttpAuthenticationChallengeContext, CancellationToken)
Issues an authentication challenge to the current request by looking for an OWIN authentication middleware with the given AuthenticationType and delegating the challenge generation to that middleware.
public virtual System.Threading.Tasks.Task ChallengeAsync (System.Web.Http.Filters.HttpAuthenticationChallengeContext context, System.Threading.CancellationToken cancellationToken);
abstract member ChallengeAsync : System.Web.Http.Filters.HttpAuthenticationChallengeContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ChallengeAsync : System.Web.Http.Filters.HttpAuthenticationChallengeContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ChallengeAsync (context As HttpAuthenticationChallengeContext, cancellationToken As CancellationToken) As Task
Parameters
- context
- System.Web.Http.Filters.HttpAuthenticationChallengeContext
The context.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
A Task representing the challenge operation.
Implements
Applies to
Azure SDK for .NET