---
title: Contexts
description: The root object for request context information.
component: pinggateway
version: 7.2
page_id: pinggateway:reference:Contexts
canonical_url: https://docs.pingidentity.com/pinggateway/2026/reference/Contexts.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/Contexts.html
section_ids:
  Contexts-properties: Properties
  Contexts-moreinfo: More information
---

# Contexts

The root object for request context information.

Contexts is a map of available contexts, which implement the [Context](../_attachments/apidocs/org/forgerock/services/context/Context.html) interface. The contexts map's keys are strings and the values are context objects. A context holds type-safe information useful for processing requests and responses. The `contexts` map is populated dynamically when creating bindings for evaluation of expressions and scripts.

All context objects use their version of the following properties:

* `"context-Name"`: string

  Name of the context.

* `"context-ID"`: string

  Read-only string uniquely identifying the context object.

* `"context-rootContext"`: boolean

  True if the context object is a RootContext (has no parent).

* `"context-Parent"`: Context object

  Parent of this context object.

## Properties

The contexts object can provide access to the following contexts for each request:

* [AttributesContext](RequestsResponsesContexts.html#Attributes)

* [ClientContext](RequestsResponsesContexts.html#Client)

* [SessionContext](RequestsResponsesContexts.html#Session)

* [UriRouterContext](RequestsResponsesContexts.html#UriRouterContext)

* [TransactionIdContext](RequestsResponsesContexts.html#TransactionIdContext)

The contexts object can provide access to the following contexts when related filters are used:

* [CapturedUserPasswordContext](RequestsResponsesContexts.html#CapturedUserPasswordContext)

* [CdSsoContext](RequestsResponsesContexts.html#CdSsoContext)

* [CdSsoFailureContext](RequestsResponsesContexts.html#CdSsoFailureContext)

* [JwtValidationContext](RequestsResponsesContexts.html#JwtValidationContext) and [JwtValidationErrorContext](RequestsResponsesContexts.html#JwtValidationErrorContext)

* [JwtBuilderContext](RequestsResponsesContexts.html#JwtBuilderContext)

* [OAuth2Context](RequestsResponsesContexts.html#OAuth2Context)

* [OAuth2TokenExchangeContext](RequestsResponsesContexts.html#OAuth2TokenExchangeContext)

* [OAuth2FailureContext](RequestsResponsesContexts.html#OAuth2FailureContext)

* [PolicyDecisionContext](RequestsResponsesContexts.html#PolicyDecisionContext)

* [SessionInfoContext](RequestsResponsesContexts.html#SessionInfoContext)

* [SsoTokenContext](RequestsResponsesContexts.html#SsoTokenContext)

* [StsContext](RequestsResponsesContexts.html#StsContext)

* [UserProfileContext](RequestsResponsesContexts.html#UserProfileContext)

## More information

[org.forgerock.services.context.Context](../_attachments/apidocs/org/forgerock/services/context/Context.html)
