Compartir a través de


TypedResults.Challenge(AuthenticationProperties, IList<String>) Método

Definición

Crea un objeto ChallengeHttpResult que en la ejecución invoca ChallengeAsync(HttpContext, String, AuthenticationProperties).

El comportamiento de este método depende de en IAuthenticationService uso. Status401Unauthorized y Status403Forbidden están entre los resultados de estado probables.

public static Microsoft.AspNetCore.Http.HttpResults.ChallengeHttpResult 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.HttpResults.ChallengeHttpResult
Public Shared Function Challenge (Optional properties As AuthenticationProperties = Nothing, Optional authenticationSchemes As IList(Of String) = Nothing) As ChallengeHttpResult

Parámetros

properties
AuthenticationProperties

AuthenticationProperties se usa para realizar el desafío de autenticación.

authenticationSchemes
IList<String>

Esquemas de autenticación que se van a desafiar.

Devoluciones

objeto creado ChallengeHttpResult para la respuesta.

Se aplica a