AuthenticationHttpContextExtensions.ChallengeAsync Method

Definition

Overloads

ChallengeAsync(HttpContext)

Extension method for authenticate using the DefaultChallengeScheme scheme.

ChallengeAsync(HttpContext, AuthenticationProperties)

Extension method for authenticate using the DefaultChallengeScheme scheme.

ChallengeAsync(HttpContext, String)

Extension method for Challenge.

ChallengeAsync(HttpContext, String, AuthenticationProperties)

Extension method for Challenge.

ChallengeAsync(HttpContext)

Extension method for authenticate using the DefaultChallengeScheme scheme.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task ^ ChallengeAsync(Microsoft::AspNetCore::Http::HttpContext ^ context);
public static System.Threading.Tasks.Task ChallengeAsync (this Microsoft.AspNetCore.Http.HttpContext context);
static member ChallengeAsync : Microsoft.AspNetCore.Http.HttpContext -> System.Threading.Tasks.Task
<Extension()>
Public Function ChallengeAsync (context As HttpContext) As Task

Parameters

context
HttpContext

The HttpContext context.

Returns

Task

The task.

ChallengeAsync(HttpContext, AuthenticationProperties)

Extension method for authenticate using the DefaultChallengeScheme scheme.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task ^ ChallengeAsync(Microsoft::AspNetCore::Http::HttpContext ^ context, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public static System.Threading.Tasks.Task ChallengeAsync (this Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
static member ChallengeAsync : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
<Extension()>
Public Function ChallengeAsync (context As HttpContext, properties As AuthenticationProperties) As Task

Parameters

context
HttpContext

The HttpContext context.

Returns

Task

The task.

ChallengeAsync(HttpContext, String)

Extension method for Challenge.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task ^ ChallengeAsync(Microsoft::AspNetCore::Http::HttpContext ^ context, System::String ^ scheme);
public static System.Threading.Tasks.Task ChallengeAsync (this Microsoft.AspNetCore.Http.HttpContext context, string scheme);
static member ChallengeAsync : Microsoft.AspNetCore.Http.HttpContext * string -> System.Threading.Tasks.Task
<Extension()>
Public Function ChallengeAsync (context As HttpContext, scheme As String) As Task

Parameters

context
HttpContext

The HttpContext context.

scheme
String

The name of the authentication scheme.

Returns

Task

The result.

ChallengeAsync(HttpContext, String, AuthenticationProperties)

Extension method for Challenge.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task ^ ChallengeAsync(Microsoft::AspNetCore::Http::HttpContext ^ context, System::String ^ scheme, Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
public static System.Threading.Tasks.Task ChallengeAsync (this Microsoft.AspNetCore.Http.HttpContext context, string scheme, Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
static member ChallengeAsync : Microsoft.AspNetCore.Http.HttpContext * string * Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
<Extension()>
Public Function ChallengeAsync (context As HttpContext, scheme As String, properties As AuthenticationProperties) As Task

Parameters

context
HttpContext

The HttpContext context.

scheme
String

The name of the authentication scheme.

Returns

Task

The task.

Applies to