Share via


Results.Challenge(AuthenticationProperties, IList<String>) Metodo

Definizione

Crea un oggetto IResult che all'esecuzione richiama ChallengeAsync(HttpContext, String, AuthenticationProperties).

Il comportamento di questo metodo dipende dall'oggetto IAuthenticationService in uso. Status401Unauthorized e Status403Forbidden sono tra i risultati di stato probabili.

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

Parametri

properties
AuthenticationProperties

AuthenticationProperties usato per eseguire la richiesta di autenticazione.

authenticationSchemes
IList<String>

Schemi di autenticazione da verificare.

Restituisce

Oggetto creato IResult per la risposta.

Si applica a