Compartir a través de


JwtBearerEvents.OnForbidden Propiedad

Definición

Se invoca si se produce un error en la autorización y se produce una respuesta Prohibida.

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)

Valor de propiedad

Se aplica a