Share via


JwtBearerEvents.OnForbidden Property

Definition

Invoked if Authorization fails and results in a Forbidden response.

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)

Property Value

Applies to