PageModel.Challenge PageModel.Challenge PageModel.Challenge Method

Definition

Overloads

Challenge() Challenge() Challenge()

Creates a ChallengeResult.

Challenge(AuthenticationProperties) Challenge(AuthenticationProperties) Challenge(AuthenticationProperties)

Creates a ChallengeResult with the specified properties.

Challenge(String[]) Challenge(String[]) Challenge(String[])

Creates a ChallengeResult with the specified authentication schemes.

Challenge(AuthenticationProperties, String[]) Challenge(AuthenticationProperties, String[]) Challenge(AuthenticationProperties, String[])

Creates a ChallengeResult with the specified authentication schemes and properties.

Challenge() Challenge() Challenge()

Creates a ChallengeResult.

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

Remarks

The behavior of this method depends on the IAuthenticationService in use. Status401Unauthorized and Status403Forbidden are among likely status results.

Challenge(AuthenticationProperties) Challenge(AuthenticationProperties) Challenge(AuthenticationProperties)

Creates a ChallengeResult with the specified 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

Returns

Remarks

The behavior of this method depends on the IAuthenticationService in use. Status401Unauthorized and Status403Forbidden are among likely status results.

Challenge(String[]) Challenge(String[]) Challenge(String[])

Creates a ChallengeResult with the specified authentication schemes.

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

Remarks

The behavior of this method depends on the IAuthenticationService in use. Status401Unauthorized and Status403Forbidden are among likely status results.

Challenge(AuthenticationProperties, String[]) Challenge(AuthenticationProperties, String[]) Challenge(AuthenticationProperties, String[])

Creates a ChallengeResult with the specified authentication schemes and properties.

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

authenticationSchemes
String[]

The authentication schemes to challenge.

Returns

Remarks

The behavior of this method depends on the IAuthenticationService in use. Status401Unauthorized and Status403Forbidden are among likely status results.

Applies to