JwtBearerEvents.OnForbidden 属性

定义

如果授权失败并导致禁止响应,则调用 。

public:
 property Func<Microsoft::AspNetCore::Authentication::JwtBearer::ForbiddenContext ^, System::Threading::Tasks::Task ^> ^ OnForbidden { Func<Microsoft::AspNetCore::Authentication::JwtBearer::ForbiddenContext ^, System::Threading::Tasks::Task ^> ^ get(); void set(Func<Microsoft::AspNetCore::Authentication::JwtBearer::ForbiddenContext ^, System::Threading::Tasks::Task ^> ^ value); };
public Func<Microsoft.AspNetCore.Authentication.JwtBearer.ForbiddenContext,System.Threading.Tasks.Task> OnForbidden { get; set; }
member this.OnForbidden : Func<Microsoft.AspNetCore.Authentication.JwtBearer.ForbiddenContext, System.Threading.Tasks.Task> with get, set
Public Property OnForbidden As Func(Of ForbiddenContext, Task)

属性值

适用于