Partilhar via


AuthenticationHandler<TOptions>.HandleForbiddenAsync Método

Definição

Sobrecargas

HandleForbiddenAsync(AuthenticationProperties)

Substitua esse método para manipular o Forbid.

HandleForbiddenAsync(ChallengeContext)

Substitua esse método para lidar com um desafio proibido.

HandleForbiddenAsync(AuthenticationProperties)

Origem:
AuthenticationHandler.cs
Origem:
AuthenticationHandler.cs
Origem:
AuthenticationHandler.cs

Substitua esse método para manipular o Forbid.

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

Parâmetros

Retornos

Uma Tarefa.

Aplica-se a

HandleForbiddenAsync(ChallengeContext)

Substitua esse método para lidar com um desafio proibido.

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)

Parâmetros

Retornos

O booliano retornado é ignorado.

Aplica-se a