Share via


Results.Challenge(AuthenticationProperties, IList<String>) Méthode

Définition

Crée un qui, lors de IResult l’exécution, ChallengeAsync(HttpContext, String, AuthenticationProperties)appelle .

Le comportement de cette méthode dépend du en cours d’utilisation IAuthenticationService . Status401Unauthorizedet Status403Forbidden sont parmi les résultats status probables.

public static Microsoft.AspNetCore.Http.IResult Challenge (Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties = default, System.Collections.Generic.IList<string>? authenticationSchemes = default);
static member Challenge : Microsoft.AspNetCore.Authentication.AuthenticationProperties * System.Collections.Generic.IList<string> -> Microsoft.AspNetCore.Http.IResult
Public Shared Function Challenge (Optional properties As AuthenticationProperties = Nothing, Optional authenticationSchemes As IList(Of String) = Nothing) As IResult

Paramètres

properties
AuthenticationProperties

AuthenticationProperties utilisé pour effectuer la demande d’authentification.

authenticationSchemes
IList<String>

Schémas d’authentification à contester.

Retours

créé IResult pour la réponse.

S’applique à