Partager via


AuthenticationHandler<TOptions>.HandleForbiddenAsync Méthode

Définition

Surcharges

HandleForbiddenAsync(AuthenticationProperties)

Remplacez cette méthode pour gérer l’interdiction.

HandleForbiddenAsync(ChallengeContext)

Remplacez cette méthode pour traiter un défi interdit.

HandleForbiddenAsync(AuthenticationProperties)

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

Remplacez cette méthode pour gérer l’interdiction.

protected:
 virtual System::Threading::Tasks::Task ^ HandleForbiddenAsync(Microsoft::AspNetCore::Authentication::AuthenticationProperties ^ properties);
protected virtual System.Threading.Tasks.Task HandleForbiddenAsync (Microsoft.AspNetCore.Authentication.AuthenticationProperties properties);
abstract member HandleForbiddenAsync : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
override this.HandleForbiddenAsync : Microsoft.AspNetCore.Authentication.AuthenticationProperties -> System.Threading.Tasks.Task
Protected Overridable Function HandleForbiddenAsync (properties As AuthenticationProperties) As Task

Paramètres

Retours

Tâche.

S’applique à

HandleForbiddenAsync(ChallengeContext)

Remplacez cette méthode pour traiter un défi interdit.

protected:
 virtual System::Threading::Tasks::Task<bool> ^ HandleForbiddenAsync(Microsoft::AspNetCore::Http::Features::Authentication::ChallengeContext ^ context);
protected virtual System.Threading.Tasks.Task<bool> HandleForbiddenAsync (Microsoft.AspNetCore.Http.Features.Authentication.ChallengeContext context);
abstract member HandleForbiddenAsync : Microsoft.AspNetCore.Http.Features.Authentication.ChallengeContext -> System.Threading.Tasks.Task<bool>
override this.HandleForbiddenAsync : Microsoft.AspNetCore.Http.Features.Authentication.ChallengeContext -> System.Threading.Tasks.Task<bool>
Protected Overridable Function HandleForbiddenAsync (context As ChallengeContext) As Task(Of Boolean)

Paramètres

Retours

La valeur booléenne retournée est ignorée.

S’applique à