IAuthenticationManager.Challenge Method

Definition

Overloads

Challenge(String[])

Add information into the response environment that will cause the authentication middleware to challenge the caller to authenticate. This also changes the status code of the response to 401. The nature of that challenge varies greatly, and ranges from adding a response header or changing the 401 status code to a 302 redirect.

Challenge(AuthenticationProperties, String[])

Add information into the response environment that will cause the authentication middleware to challenge the caller to authenticate. This also changes the status code of the response to 401. The nature of that challenge varies greatly, and ranges from adding a response header or changing the 401 status code to a 302 redirect.

Challenge(String[])

Source:
IAuthenticationManager.cs

Add information into the response environment that will cause the authentication middleware to challenge the caller to authenticate. This also changes the status code of the response to 401. The nature of that challenge varies greatly, and ranges from adding a response header or changing the 401 status code to a 302 redirect.

public void Challenge (params string[] authenticationTypes);
abstract member Challenge : string[] -> unit
Public Sub Challenge (ParamArray authenticationTypes As String())

Parameters

authenticationTypes
String[]

Identify which middleware should perform their alterations on the response. If the authenticationTypes is null or empty, that means the AuthenticationMode.Active middleware should perform their alterations on the response.

Applies to

Challenge(AuthenticationProperties, String[])

Source:
IAuthenticationManager.cs

Add information into the response environment that will cause the authentication middleware to challenge the caller to authenticate. This also changes the status code of the response to 401. The nature of that challenge varies greatly, and ranges from adding a response header or changing the 401 status code to a 302 redirect.

public void Challenge (Microsoft.Owin.Security.AuthenticationProperties properties, params string[] authenticationTypes);
abstract member Challenge : Microsoft.Owin.Security.AuthenticationProperties * string[] -> unit
Public Sub Challenge (properties As AuthenticationProperties, ParamArray authenticationTypes As String())

Parameters

properties
AuthenticationProperties

Additional arbitrary values which may be used by particular authentication types.

authenticationTypes
String[]

Identify which middleware should perform their alterations on the response. If the authenticationTypes is null or empty, that means the AuthenticationMode.Active middleware should perform their alterations on the response.

Applies to