JwtBearerEvents.AuthenticationFailed(AuthenticationFailedContext) 方法

定义

在处理请求期间引发异常时调用。 在发生此事件后将重新引发异常,除非已抑制这些异常。

public:
 virtual System::Threading::Tasks::Task ^ AuthenticationFailed(Microsoft::AspNetCore::Authentication::JwtBearer::AuthenticationFailedContext ^ context);
public virtual System.Threading.Tasks.Task AuthenticationFailed (Microsoft.AspNetCore.Authentication.JwtBearer.AuthenticationFailedContext context);
abstract member AuthenticationFailed : Microsoft.AspNetCore.Authentication.JwtBearer.AuthenticationFailedContext -> System.Threading.Tasks.Task
override this.AuthenticationFailed : Microsoft.AspNetCore.Authentication.JwtBearer.AuthenticationFailedContext -> System.Threading.Tasks.Task
Public Overridable Function AuthenticationFailed (context As AuthenticationFailedContext) As Task

参数

返回

实现

适用于