---
title: JwtValidationErrorContext
description: Provides the properties of a JWT after validation fails. When the JwtValidationFilter fails to validate a JWT, or the IdTokenValidationFilter fails to validate an id_token, it injects the JWT and a list of violations into this context.
component: pinggateway
version: 7.2
page_id: pinggateway:reference:JwtValidationErrorContext
canonical_url: https://docs.pingidentity.com/pinggateway/2026/reference/JwtValidationErrorContext.html
llms_txt: https://docs.pingidentity.com/pinggateway/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: 2025-06-02T16:30:54Z
superseded_by: https://docs.pingidentity.com/pinggateway/2026/reference/JwtValidationErrorContext.html
section_ids:
  JwtValidationErrorContext-properties: Properties
  JwtValidationErrorContext-moreinfo: More information
---

# JwtValidationErrorContext

Provides the properties of a JWT after validation fails. When the [JwtValidationFilter](Filters.html#JwtValidationFilter) fails to validate a JWT, or the [IdTokenValidationFilter](Filters.html#IdTokenValidationFilter) fails to validate an id_token, it injects the JWT and a list of violations into this context.

## Properties

The context is named `jwtValidationError`, and is accessible at `${contexts.jwtValidationError}`. The context has the following properties:

* `"jwt"`: *[string](preface.html#definition-string)*

  The value of the JWT. Cannot be null.

* `"violations"`: *list of violations*

  An unmodifiable list of violations. For more information, see the [Violation](../_attachments/apidocs/org/forgerock/openig/tools/jwt/validation/Violation.html) class.

## More information

[org.forgerock.openig.filter.jwt.JwtValidationFilter](../_attachments/apidocs/org/forgerock/openig/filter/jwt/JwtValidationFilter.html)

[org.forgerock.openig.filter.oauth2.client.IdTokenValidationFilterHeaplet](../_attachments/apidocs/org/forgerock/openig/filter/oauth2/client/IdTokenValidationFilterHeaplet.html)

[org.forgerock.openig.filter.jwt.JwtValidationContext](../_attachments/apidocs/org/forgerock/openig/filter/jwt/JwtValidationContext.html)

[org.forgerock.openig.filter.jwt.JwtValidationErrorContext](../_attachments/apidocs/org/forgerock/openig/filter/jwt/JwtValidationErrorContext.html)
