共用方式為


JwtBearerEvents.Forbidden(ForbiddenContext) 方法

定義

如果授權失敗並導致禁止回應,則會叫用

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

參數

傳回

適用於