Compartir a través de


ControllerBase.Challenge Método

Definición

Sobrecargas

Challenge(AuthenticationProperties, String[])

Crea un ChallengeResult objeto con los esquemas de autenticación especificados y properties.

Challenge()

Crea una interfaz ChallengeResult.

Challenge(AuthenticationProperties)

Crea un ChallengeResult objeto con el especificado properties.

Challenge(AuthenticationProperties)

Crea un ChallengeResult objeto con el especificado properties.

Challenge(String[])

Crea un ChallengeResult objeto con los esquemas de autenticación especificados.

Challenge(AuthenticationProperties, String[])

Crea un ChallengeResult objeto con los esquemas de autenticación especificados y properties.

Challenge(AuthenticationProperties, String[])

Crea un ChallengeResult objeto con los esquemas de autenticación especificados y properties.

public:
 virtual Microsoft::AspNetCore::Mvc::ChallengeResult ^ Challenge(Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties, ... cli::array <System::String ^> ^ authenticationSchemes);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge (Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Challenge : Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties * string[] -> Microsoft.AspNetCore.Mvc.ChallengeResult
override this.Challenge : Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties * string[] -> Microsoft.AspNetCore.Mvc.ChallengeResult
Public Overridable Function Challenge (properties As AuthenticationProperties, ParamArray authenticationSchemes As String()) As ChallengeResult

Parámetros

properties
AuthenticationProperties

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

authenticationSchemes
String[]

Esquemas de autenticación que se van a desafiar.

Devoluciones

objeto creado ChallengeResult para la respuesta.

Atributos

Se aplica a

Challenge()

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

Crea una interfaz ChallengeResult.

public:
 virtual Microsoft::AspNetCore::Mvc::ChallengeResult ^ Challenge();
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge ();
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Challenge : unit -> Microsoft.AspNetCore.Mvc.ChallengeResult
override this.Challenge : unit -> Microsoft.AspNetCore.Mvc.ChallengeResult
Public Overridable Function Challenge () As ChallengeResult

Devoluciones

objeto creado ChallengeResult para la respuesta.

Atributos

Comentarios

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

Se aplica a

Challenge(AuthenticationProperties)

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

Crea un ChallengeResult objeto con el especificado properties.

public:
 virtual Microsoft::AspNetCore::Mvc::ChallengeResult ^ Challenge(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Challenge : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Mvc.ChallengeResult
override this.Challenge : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Mvc.ChallengeResult
Public Overridable Function Challenge (properties As AuthenticationProperties) As ChallengeResult

Parámetros

properties
AuthenticationProperties

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

Devoluciones

objeto creado ChallengeResult para la respuesta.

Atributos

Comentarios

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

Se aplica a

Challenge(AuthenticationProperties)

Crea un ChallengeResult objeto con el especificado properties.

public:
 virtual Microsoft::AspNetCore::Mvc::ChallengeResult ^ Challenge(Microsoft::AspNetCore::Http::Authentication::AuthenticationProperties ^ properties);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge (Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties properties);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Challenge : Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Mvc.ChallengeResult
override this.Challenge : Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties -> Microsoft.AspNetCore.Mvc.ChallengeResult
Public Overridable Function Challenge (properties As AuthenticationProperties) As ChallengeResult

Parámetros

properties
AuthenticationProperties

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

Devoluciones

objeto creado ChallengeResult para la respuesta.

Atributos

Se aplica a

Challenge(String[])

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

Crea un ChallengeResult objeto con los esquemas de autenticación especificados.

public:
 virtual Microsoft::AspNetCore::Mvc::ChallengeResult ^ Challenge(... cli::array <System::String ^> ^ authenticationSchemes);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge (params string[] authenticationSchemes);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Challenge : string[] -> Microsoft.AspNetCore.Mvc.ChallengeResult
override this.Challenge : string[] -> Microsoft.AspNetCore.Mvc.ChallengeResult
Public Overridable Function Challenge (ParamArray authenticationSchemes As String()) As ChallengeResult

Parámetros

authenticationSchemes
String[]

Esquemas de autenticación que se van a desafiar.

Devoluciones

objeto creado ChallengeResult para la respuesta.

Atributos

Comentarios

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

Se aplica a

Challenge(AuthenticationProperties, String[])

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

Crea un ChallengeResult objeto con los esquemas de autenticación especificados y properties.

public:
 virtual Microsoft::AspNetCore::Mvc::ChallengeResult ^ Challenge(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties, ... cli::array <System::String ^> ^ authenticationSchemes);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Challenge : Microsoft.AspNetCore.Authentication.AuthenticationProperties * string[] -> Microsoft.AspNetCore.Mvc.ChallengeResult
override this.Challenge : Microsoft.AspNetCore.Authentication.AuthenticationProperties * string[] -> Microsoft.AspNetCore.Mvc.ChallengeResult
Public Overridable Function Challenge (properties As AuthenticationProperties, ParamArray authenticationSchemes As String()) As ChallengeResult

Parámetros

properties
AuthenticationProperties

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

authenticationSchemes
String[]

Esquemas de autenticación que se van a desafiar.

Devoluciones

objeto creado ChallengeResult para la respuesta.

Atributos

Comentarios

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

Se aplica a