Share via


ControllerBase.Challenge Método

Definição

Sobrecargas

Challenge(AuthenticationProperties, String[])

Cria um ChallengeResult com os esquemas de autenticação especificados e properties.

Challenge()

Cria um ChallengeResult.

Challenge(AuthenticationProperties)

Cria um ChallengeResult com o especificado properties.

Challenge(AuthenticationProperties)

Cria um ChallengeResult com o especificado properties.

Challenge(String[])

Cria um ChallengeResult com os esquemas de autenticação especificados.

Challenge(AuthenticationProperties, String[])

Cria um ChallengeResult com os esquemas de autenticação especificados e properties.

Challenge(AuthenticationProperties, String[])

Cria um ChallengeResult com os esquemas de autenticação especificados e 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 usado para executar o desafio de autenticação.

authenticationSchemes
String[]

Os esquemas de autenticação a serem desafiados.

Retornos

O criado ChallengeResult para a resposta.

Atributos

Aplica-se a

Challenge()

Origem:
ControllerBase.cs
Origem:
ControllerBase.cs

Cria um 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

Retornos

O criado ChallengeResult para a resposta.

Atributos

Comentários

O comportamento desse método depende do IAuthenticationService em uso. Status401Unauthorizede Status403Forbidden estão entre os resultados prováveis status.

Aplica-se a

Challenge(AuthenticationProperties)

Origem:
ControllerBase.cs
Origem:
ControllerBase.cs

Cria um ChallengeResult com o 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 usado para executar o desafio de autenticação.

Retornos

O criado ChallengeResult para a resposta.

Atributos

Comentários

O comportamento desse método depende do IAuthenticationService em uso. Status401Unauthorizede Status403Forbidden estão entre os resultados prováveis status.

Aplica-se a

Challenge(AuthenticationProperties)

Cria um ChallengeResult com o 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 usado para executar o desafio de autenticação.

Retornos

O criado ChallengeResult para a resposta.

Atributos

Aplica-se a

Challenge(String[])

Origem:
ControllerBase.cs
Origem:
ControllerBase.cs

Cria um ChallengeResult com os esquemas de autenticação 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[]

Os esquemas de autenticação a serem desafiados.

Retornos

O criado ChallengeResult para a resposta.

Atributos

Comentários

O comportamento desse método depende do IAuthenticationService em uso. Status401Unauthorizede Status403Forbidden estão entre os resultados prováveis status.

Aplica-se a

Challenge(AuthenticationProperties, String[])

Origem:
ControllerBase.cs
Origem:
ControllerBase.cs

Cria um ChallengeResult com os esquemas de autenticação especificados e 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 usado para executar o desafio de autenticação.

authenticationSchemes
String[]

Os esquemas de autenticação a serem desafiados.

Retornos

O criado ChallengeResult para a resposta.

Atributos

Comentários

O comportamento desse método depende do IAuthenticationService em uso. Status401Unauthorizede Status403Forbidden estão entre os resultados prováveis status.

Aplica-se a