Aggregated and Distributed Claims in OpenID Connect
In OpenID Connect (OIDC), Standard Claims (like sub, email, name) and Custom Claims are attributes directly asserted and digitally signed by the primary OpenID Provider (OP).
However, OIDC includes two mechanisms, Aggregated Claims and Distributed Claims, that allow an OP to integrate data from external sources, such as an CRM system, payment provider, employee directory, known as Claims Providers.
These mechanisms enable the separation of concerns and the integration of specialized attribute authorities.
Summary and Comparison
| Feature | Standard/Custom Claims | Aggregated Claims | Distributed Claims |
|---|---|---|---|
| Source Asserted By | Primary OpenID Provider (OP) | Claims Provider | Claims Provider |
| Return Value | Literal key-value pair e.g., "name": "Jane Doe" | Nested JWT signed by Claims Provider. | JSON object with endpoint and access_token as reference. |
| Assertion of Trust | OP's signature on the token | OP's signature on the container + Claims Provider's signature on the nested JWT. | P's signature on the container + RP must trust the secure channel to the third-party Claims Provider. |
| RP Retrieval Method | Direct fetch from ID Token or UserInfo Endpoint. | Direct fetch from ID Token or UserInfo Endpoint; requires nested JWT validation. | Separate API call by the RP to the Claims Provider's endpoint. |
| Data Flow | OP → RP | Claims Provider → OP → RP | Claims Provider → RP (Direct) |
| Primary Use Case | Core identity data. | Integrating claims from partners while maintaining the OP as the delivery channel. | Large, sensitive, or external claims that require an independent fetch. |