Bagikan melalui


ControllerBase.Challenge Metode

Definisi

Overload

Challenge(AuthenticationProperties, String[])

ChallengeResult Membuat dengan skema autentikasi yang ditentukan dan properties.

Challenge()

ChallengeResultMembuat .

Challenge(AuthenticationProperties)

ChallengeResult Membuat dengan yang ditentukanproperties.

Challenge(AuthenticationProperties)

ChallengeResult Membuat dengan yang ditentukanproperties.

Challenge(String[])

ChallengeResult Membuat dengan skema autentikasi yang ditentukan.

Challenge(AuthenticationProperties, String[])

ChallengeResult Membuat dengan skema autentikasi yang ditentukan dan properties.

Challenge(AuthenticationProperties, String[])

ChallengeResult Membuat dengan skema autentikasi yang ditentukan dan 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

Parameter

properties
AuthenticationProperties

AuthenticationProperties digunakan untuk melakukan tantangan autentikasi.

authenticationSchemes
String[]

Skema autentikasi untuk ditantang.

Mengembalikan

yang dibuat ChallengeResult untuk respons.

Atribut

Berlaku untuk

Challenge()

Sumber:
ControllerBase.cs
Sumber:
ControllerBase.cs
Sumber:
ControllerBase.cs

ChallengeResultMembuat .

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

Mengembalikan

yang dibuat ChallengeResult untuk respons.

Atribut

Keterangan

Perilaku metode ini tergantung pada yang IAuthenticationService digunakan. Status401Unauthorized dan Status403Forbidden merupakan salah satu kemungkinan hasil status.

Berlaku untuk

Challenge(AuthenticationProperties)

Sumber:
ControllerBase.cs
Sumber:
ControllerBase.cs
Sumber:
ControllerBase.cs

ChallengeResult Membuat dengan yang ditentukanproperties.

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

Parameter

properties
AuthenticationProperties

AuthenticationProperties digunakan untuk melakukan tantangan autentikasi.

Mengembalikan

yang dibuat ChallengeResult untuk respons.

Atribut

Keterangan

Perilaku metode ini tergantung pada yang IAuthenticationService digunakan. Status401Unauthorized dan Status403Forbidden merupakan salah satu kemungkinan hasil status.

Berlaku untuk

Challenge(AuthenticationProperties)

ChallengeResult Membuat dengan yang ditentukanproperties.

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

Parameter

properties
AuthenticationProperties

AuthenticationProperties digunakan untuk melakukan tantangan autentikasi.

Mengembalikan

yang dibuat ChallengeResult untuk respons.

Atribut

Berlaku untuk

Challenge(String[])

Sumber:
ControllerBase.cs
Sumber:
ControllerBase.cs
Sumber:
ControllerBase.cs

ChallengeResult Membuat dengan skema autentikasi yang ditentukan.

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

Parameter

authenticationSchemes
String[]

Skema autentikasi untuk ditantang.

Mengembalikan

yang dibuat ChallengeResult untuk respons.

Atribut

Keterangan

Perilaku metode ini tergantung pada yang IAuthenticationService digunakan. Status401Unauthorized dan Status403Forbidden merupakan salah satu kemungkinan hasil status.

Berlaku untuk

Challenge(AuthenticationProperties, String[])

Sumber:
ControllerBase.cs
Sumber:
ControllerBase.cs
Sumber:
ControllerBase.cs

ChallengeResult Membuat dengan skema autentikasi yang ditentukan dan 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

Parameter

properties
AuthenticationProperties

AuthenticationProperties digunakan untuk melakukan tantangan autentikasi.

authenticationSchemes
String[]

Skema autentikasi untuk ditantang.

Mengembalikan

yang dibuat ChallengeResult untuk respons.

Atribut

Keterangan

Perilaku metode ini tergantung pada yang IAuthenticationService digunakan. Status401Unauthorized dan Status403Forbidden merupakan salah satu kemungkinan hasil status.

Berlaku untuk