AuthenticationHandler<TOptions>.ChallengeAsync Method

Definition

Overloads

ChallengeAsync(AuthenticationProperties)

Source:
AuthenticationHandler.cs
Source:
AuthenticationHandler.cs
Source:
AuthenticationHandler.cs

Challenge the current request.

C#
public System.Threading.Tasks.Task ChallengeAsync (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
C#
public System.Threading.Tasks.Task ChallengeAsync (Microsoft.AspNetCore.Authentication.AuthenticationProperties? properties);

Parameters

properties
AuthenticationProperties

The AuthenticationProperties that contains the extra meta-data arriving with the authentication.

Returns

A task.

Implements

Applies to

ASP.NET Core 9.0 och andra versioner
Produkt Versioner
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

ChallengeAsync(ChallengeContext)

C#
public System.Threading.Tasks.Task ChallengeAsync (Microsoft.AspNetCore.Http.Features.Authentication.ChallengeContext context);

Parameters

Returns

Implements

Applies to

ASP.NET Core 1.1 och ASP.NET Core 1.0
Produkt Versioner
ASP.NET Core 1.0, 1.1