Partager via


ServiceAuthenticationFilter.ChallengeAsync Méthode

Définition

Surcharges

ChallengeAsync(IAuthenticationManager)

Émet un défi d’authentification pour la requête actuelle en recherchant un intergiciel d’authentification OWIN avec le donné AuthenticationType et en déléguant la génération de défi à ce middleware.

ChallengeAsync(HttpAuthenticationChallengeContext, CancellationToken)

Émet un défi d’authentification pour la requête actuelle en recherchant un intergiciel d’authentification OWIN avec le donné AuthenticationType et en déléguant la génération de défi à ce middleware.

ChallengeAsync(IAuthenticationManager)

Émet un défi d’authentification pour la requête actuelle en recherchant un intergiciel d’authentification OWIN avec le donné AuthenticationType et en déléguant la génération de défi à ce 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

Paramètres

authenticationManager
Microsoft.Owin.Security.IAuthenticationManager

Microsoft.Owin.Security.IAuthenticationManager à utiliser pour créer le défi.

Retours

Task représentant l’opération de défi.

S’applique à

ChallengeAsync(HttpAuthenticationChallengeContext, CancellationToken)

Émet un défi d’authentification pour la requête actuelle en recherchant un intergiciel d’authentification OWIN avec le donné AuthenticationType et en déléguant la génération de défi à ce 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

Paramètres

context
System.Web.Http.Filters.HttpAuthenticationChallengeContext

Contexte.

cancellationToken
CancellationToken

Jeton d'annulation.

Retours

Task représentant l’opération de défi.

Implémente

System.Web.Http.Filters.IAuthenticationFilter.ChallengeAsync(System.Web.Http.Filters.HttpAuthenticationChallengeContext,System.Threading.CancellationToken)

S’applique à