Share via


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

Definición

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

El comportamiento de este método depende del IAuthenticationService en uso. Status401Unauthorized y Status403Forbidden están entre los resultados de estado 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

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

creado IResult para la respuesta.

Se aplica a