ControllerBase.Challenge Metodo

Definizione

Overload

Challenge(AuthenticationProperties, String[])

Crea un ChallengeResult oggetto con gli schemi di autenticazione specificati e properties.

Challenge()

Crea un oggetto ChallengeResult.

Challenge(AuthenticationProperties)

Crea un ChallengeResult oggetto con l'oggetto specificato properties.

Challenge(AuthenticationProperties)

Crea un ChallengeResult oggetto con l'oggetto specificato properties.

Challenge(String[])

Crea un ChallengeResult oggetto con gli schemi di autenticazione specificati.

Challenge(AuthenticationProperties, String[])

Crea un ChallengeResult oggetto con gli schemi di autenticazione specificati e properties.

Challenge(AuthenticationProperties, String[])

Crea un ChallengeResult oggetto con gli schemi di autenticazione specificati 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

Parametri

properties
AuthenticationProperties

AuthenticationProperties usato per eseguire la richiesta di autenticazione.

authenticationSchemes
String[]

Schemi di autenticazione da verificare.

Restituisce

Oggetto creato ChallengeResult per la risposta.

Attributi

Si applica a

Challenge()

Crea un oggetto 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

Restituisce

Oggetto creato ChallengeResult per la risposta.

Attributi

Commenti

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

Si applica a

Challenge(AuthenticationProperties)

Crea un ChallengeResult oggetto con l'oggetto specificato 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

Parametri

properties
AuthenticationProperties

AuthenticationProperties usato per eseguire la richiesta di autenticazione.

Restituisce

Oggetto creato ChallengeResult per la risposta.

Attributi

Commenti

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

Si applica a

Challenge(AuthenticationProperties)

Crea un ChallengeResult oggetto con l'oggetto specificato 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

Parametri

properties
AuthenticationProperties

AuthenticationProperties usato per eseguire la richiesta di autenticazione.

Restituisce

Oggetto creato ChallengeResult per la risposta.

Attributi

Si applica a

Challenge(String[])

Crea un ChallengeResult oggetto con gli schemi di autenticazione specificati.

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

Parametri

authenticationSchemes
String[]

Schemi di autenticazione da verificare.

Restituisce

Oggetto creato ChallengeResult per la risposta.

Attributi

Commenti

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

Si applica a

Challenge(AuthenticationProperties, String[])

Crea un ChallengeResult oggetto con gli schemi di autenticazione specificati 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

Parametri

properties
AuthenticationProperties

AuthenticationProperties usato per eseguire la richiesta di autenticazione.

authenticationSchemes
String[]

Schemi di autenticazione da verificare.

Restituisce

Oggetto creato ChallengeResult per la risposta.

Attributi

Commenti

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

Si applica a