JwtBearerChallengeContext Class¶
- Namespace
Microsoft.AspNetCore.Authentication.JwtBearer
- Assemblies
- Microsoft.AspNetCore.Authentication.JwtBearer
Syntax¶
public class JwtBearerChallengeContext : BaseJwtBearerContext
-
class
Microsoft.AspNetCore.Authentication.JwtBearer.
JwtBearerChallengeContext
Constructors¶
-
JwtBearerChallengeContext
(Microsoft.AspNetCore.Http.HttpContext, Microsoft.AspNetCore.Builder.JwtBearerOptions, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties)¶ public JwtBearerChallengeContext(HttpContext context, JwtBearerOptions options, AuthenticationProperties properties)
-
Properties¶
-
Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerChallengeContext.
AuthenticateFailure
¶ Any failures encountered during the authentication process.
Return type: System.Exception public Exception AuthenticateFailure { get; set; }
-
Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerChallengeContext.
Error
¶ Gets or sets the “error” value returned to the caller as part of the WWW-Authenticate header. This property may be null when
Microsoft.AspNetCore.Builder.JwtBearerOptions.IncludeErrorDetails
is set to <code>false</code>.Return type: System.String public string Error { get; set; }
-
Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerChallengeContext.
ErrorDescription
¶ Gets or sets the “error_description” value returned to the caller as part of the WWW-Authenticate header. This property may be null when
Microsoft.AspNetCore.Builder.JwtBearerOptions.IncludeErrorDetails
is set to <code>false</code>.Return type: System.String public string ErrorDescription { get; set; }
-
Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerChallengeContext.
ErrorUri
¶ Gets or sets the “error_uri” value returned to the caller as part of the WWW-Authenticate header. This property is always null unless explicitly set.
Return type: System.String public string ErrorUri { get; set; }
-
Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerChallengeContext.
Properties
¶ Return type: Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties public AuthenticationProperties Properties { get; }
-