Partager via


JwtBearerEvents.Forbidden(ForbiddenContext) Méthode

Définition

Appelé si l’autorisation échoue et génère une réponse Interdit

public:
 virtual System::Threading::Tasks::Task ^ Forbidden(Microsoft::AspNetCore::Authentication::JwtBearer::ForbiddenContext ^ context);
public virtual System.Threading.Tasks.Task Forbidden (Microsoft.AspNetCore.Authentication.JwtBearer.ForbiddenContext context);
abstract member Forbidden : Microsoft.AspNetCore.Authentication.JwtBearer.ForbiddenContext -> System.Threading.Tasks.Task
override this.Forbidden : Microsoft.AspNetCore.Authentication.JwtBearer.ForbiddenContext -> System.Threading.Tasks.Task
Public Overridable Function Forbidden (context As ForbiddenContext) As Task

Paramètres

Retours

S’applique à