JwtBearerEvents.OnAuthenticationFailed 属性

定义

如果在请求处理期间身份验证失败,则调用。 在发生此事件后将重新引发异常,除非已抑制这些异常。

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

属性值

适用于