JwtBearerOptions.IncludeErrorDetails 属性

定义

定义是否应将令牌验证错误返回给调用方。 默认情况下,可以禁用此选项,以防止 JWT 中间件在 WWW-Authenticate 标头中返回错误和error_description。

public:
 property bool IncludeErrorDetails { bool get(); void set(bool value); };
public bool IncludeErrorDetails { get; set; }
member this.IncludeErrorDetails : bool with get, set
Public Property IncludeErrorDetails As Boolean

属性值

适用于