PageModel.Challenge Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Challenge() |
Creates a ChallengeResult. |
Challenge(AuthenticationProperties) |
Creates a ChallengeResult with the specified |
Challenge(String[]) |
Creates a ChallengeResult with the specified authentication schemes. |
Challenge(AuthenticationProperties, String[]) |
Creates a ChallengeResult with the specified authentication schemes and
|
Challenge()
- Source:
- PageModel.cs
- Source:
- PageModel.cs
- Source:
- PageModel.cs
Creates a ChallengeResult.
public:
virtual Microsoft::AspNetCore::Mvc::ChallengeResult ^ Challenge();
public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge ();
abstract member Challenge : unit -> Microsoft.AspNetCore.Mvc.ChallengeResult
override this.Challenge : unit -> Microsoft.AspNetCore.Mvc.ChallengeResult
Public Overridable Function Challenge () As ChallengeResult
Returns
The created ChallengeResult for the response.
Remarks
The behavior of this method depends on the IAuthenticationService in use. Status401Unauthorized and Status403Forbidden are among likely status results.
Applies to
Challenge(AuthenticationProperties)
- Source:
- PageModel.cs
- Source:
- PageModel.cs
- Source:
- PageModel.cs
Creates a ChallengeResult with the specified properties
.
public:
virtual Microsoft::AspNetCore::Mvc::ChallengeResult ^ Challenge(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
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
Parameters
- properties
- AuthenticationProperties
AuthenticationProperties used to perform the authentication challenge.
Returns
The created ChallengeResult for the response.
Remarks
The behavior of this method depends on the IAuthenticationService in use. Status401Unauthorized and Status403Forbidden are among likely status results.
Applies to
Challenge(String[])
- Source:
- PageModel.cs
- Source:
- PageModel.cs
- Source:
- PageModel.cs
Creates a ChallengeResult with the specified authentication schemes.
public:
virtual Microsoft::AspNetCore::Mvc::ChallengeResult ^ Challenge(... cli::array <System::String ^> ^ authenticationSchemes);
public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge (params string[] authenticationSchemes);
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
Parameters
- authenticationSchemes
- String[]
The authentication schemes to challenge.
Returns
The created ChallengeResult for the response.
Remarks
The behavior of this method depends on the IAuthenticationService in use. Status401Unauthorized and Status403Forbidden are among likely status results.
Applies to
Challenge(AuthenticationProperties, String[])
- Source:
- PageModel.cs
- Source:
- PageModel.cs
- Source:
- PageModel.cs
Creates a ChallengeResult with the specified authentication schemes and
properties
.
public:
virtual Microsoft::AspNetCore::Mvc::ChallengeResult ^ Challenge(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties, ... cli::array <System::String ^> ^ authenticationSchemes);
public virtual Microsoft.AspNetCore.Mvc.ChallengeResult Challenge (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties, params string[] authenticationSchemes);
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
Parameters
- properties
- AuthenticationProperties
AuthenticationProperties used to perform the authentication challenge.
- authenticationSchemes
- String[]
The authentication schemes to challenge.
Returns
The created ChallengeResult for the response.
Remarks
The behavior of this method depends on the IAuthenticationService in use. Status401Unauthorized and Status403Forbidden are among likely status results.