OpenID Federation
OpenID Federation lets two entities with no prior relationship trust each other through a common Trust Anchor. Each entity publishes a signed Entity Configuration, and Superiors publish signed Subordinate Statements about their Immediate Subordinates. A verified chain of these, with its metadata policy applied, gives the peer's Resolved Metadata.
Follow the workflow below step by step. Every rule here comes from a source in Sources, cited inline as (Spec § section). If a rule is not in a source, it is not in this skill.
Federation 1.1 contains the protocol-independent parts of Federation 1.0, and Federation for OpenID Connect 1.1 contains the OpenID Connect and OAuth 2.0 parts. Neither adds functionality beyond 1.0 (Federation 1.1 § 1, Federation Connect 1.1 § 1). This skill cites the 1.1 documents as "Federation" and "Federation Connect". Federation 1.0 holds the same rules in one document.
Inputs (fill in, or ask before starting)
- Role: Trust Anchor, Intermediate, Leaf (RP, OP, OAuth client, authorization server or protected resource), Trust Mark Issuer, or resolver. One entity can have several Entity Types.
- Target version: OpenID Federation 1.1 (current, the default). OpenID Federation 1.0 is supported: use it when the federation or a conformance profile names it. OpenID Federation 1.0 drafts (ID4 and earlier working-group drafts) are legacy: read them and upgrade, never emit their parameter names. No preview is listed. See
references/versions.md. - Revision: the pinned revisions in Sources. Ask before using a draft.
- Trust Anchors: the Entity Identifiers and public keys of the Trust Anchors this deployment trusts, obtained out of band (Federation § 4).
- Federation policy: signing algorithms, required trust marks, client registration methods and any additional policy operators the federation defines.
- Sources refresh: before relying on a pin, compare it with the OpenID Foundation specifications index. If a revision changed, re-read the source and update
metadata.jsonand Sources.
Invariants
- An Entity Identifier is an
httpsURL with a host and optional port and path, and no query or fragment (Federation § 1.2). - Entity Statements have
typ: entity-statement+jwtand are rejected otherwise.algis nevernone, andkidexactly matches a key in the issuer's Entity Configurationjwks(Federation § 3, § 3.2). - The Entity Configuration is served at the Entity Identifier, minus any trailing
/, plus/.well-known/openid-federation, asapplication/entity-statement+jwt. Trust Anchors and Intermediates MUST publish it (Federation § 9, § 9.2). - A chain is valid only if every statement is current,
ES[j].iss == ES[j+1].sub, each statement is signed by a key in the next statement'sjwks, and the last statement is the Trust Anchor's, verified with the Trust Anchor key held out of band (Federation § 10.2). - Metadata policy resolves from the most Superior statement down. Any policy error, conflict, or unknown operator listed in
metadata_policy_critmakes the chain invalid (Federation § 6.1.4). - Every
constraintsclaim in the chain is applied, and any failure makes the chain invalid (Federation § 6.2). - A chain expires at the smallest
expin it. A registration based on a chain never outlives it (Federation § 10.4, Federation Connect § 12.3). - A trust mark is trusted only after trust in its issuer is established through a chain. It has
typ: trust-mark+jwt, and it needs a validdelegationwhen the Trust Anchor lists an owner for its type (Federation § 7, § 7.3). - Entity Statements already fetched are never fetched again during one resolution, and an
authority_hintsentry that leads to a loop is dropped (Federation § 10.1). Implementations limit how manyauthority_hintsthey follow (Federation § 18.1). - With Automatic Registration, the RP's Entity Identifier is its
client_id, requests are authenticated with asymmetric keys, and the RP resolves the OP's chain before sending anything (Federation Connect § 12.1).
Workflow
- Pick the version. Use Federation 1.1 unless the federation names 1.0. If a peer speaks a pre-Final draft, plan an upgrade (step 10).
->
references/versions.md✓ The target version is recorded, and no draft parameter name is emitted. - Publish the Entity Configuration. Set
issequal tosub, plusjwks,metadataper Entity Type, andauthority_hintsfor non-Trust-Anchors. ->references/entity-statements.md✓/.well-known/openid-federationreturns a signed, typed JWT that passes (Federation § 3.2). - Issue Subordinate Statements and endpoints (Trust Anchors and Intermediates). Expose fetch and list, and add
metadata_policyandconstraintswhere needed. ->references/endpoints.md,references/metadata-policy.md✓ The fetch endpoint returnsapplication/entity-statement+jwt, and errors use (Federation § 8.9). - Resolve a peer's trust chain. Collect statements bottom-up from
authority_hints, or use a resolver. ->references/trust-chains.md✓ Loops and unknown Trust Anchors are skipped, and the number of hints followed is bounded. - Validate the chain, then apply policy and constraints.
->
references/trust-chains.md,references/metadata-policy.md✓ Tests cover a broken signature link, an expired statement, a policy conflict and a constraint failure, and each one invalidates the chain. - Evaluate trust marks when the federation uses them.
->
references/trust-marks.md✓ The trust mark issuer's chain is validated before the trust mark itself. - Register OpenID Connect or OAuth 2.0 clients. Use Automatic or Explicit Registration.
->
references/registration.md✓ The Request Object or registration JWTaudis only the OP's Entity Identifier, and the registration lifetime is at most the chain lifetime. - Refresh and roll keys. Re-resolve when chains expire, and roll Federation Entity Keys with overlap.
->
references/trust-chains.md✓ An expired chain is never used, and old keys stay published until Subordinates have the new ones. - Add draft endpoints only when asked.
->
references/endpoints.md✓ Each draft in use is pinned to the revision in Sources, with its posture recorded. - Upgrade (only when asked). Move a draft implementation to the Final names and behaviour, or re-cite a 1.0 implementation against the 1.1 documents.
->
references/versions.md✓ Noanchor, trust markid,trust_mark_id,homepage_urior draft error code remains, and the federation's chains resolve to the same Resolved Metadata.
Verify before done
- Every Entity Statement, trust mark, resolve response and historical keys JWT checks its
typand rejects a missing or wrong value. - Chain validation enforces
iss/sublinkage, signature linkage,iat,exp, and the out-of-band Trust Anchor key (Federation § 10.2). - Policy resolution starts at the Trust Anchor's statement, merges operators per their rules, and fails closed (Federation § 6.1.4).
- Operators are applied in order:
value,add,default,one_of,subset_of,superset_of, thenessential(Federation § 6.1.3.1). - Subordinate
metadatais applied before the resolved policy (Federation § 6.1.4.2). -
max_path_length,naming_constraintsandallowed_entity_typesare enforced (Federation § 6.2). - Endpoint URLs are published in the Entity Configuration, not in Subordinate Statements (Federation § 8.1, § 8.2).
- Chain and registration lifetimes use the minimum
exp(Federation § 10.4, Federation Connect § 12.3). - Every draft in use carries its pinned revision and posture.
- Nothing emitted uses a parameter name, error code or media type from a pre-Final draft.
Reference index
| File | Covers |
|---|---|
references/versions.md |
Version lines, which to use, what changed from the drafts and in the 1.1 split, upgrade steps, why no preview is listed |
references/entity-statements.md |
Entity Statement claims, validation, the well-known URL, federation_entity metadata, Entity Types, media types |
references/trust-chains.md |
Chain structure, collection, validation, selection, expiry, constraints, key rollover, DoS limits |
references/metadata-policy.md |
Policy structure, the seven standard operators, combination and merge rules, resolution and application |
references/trust-marks.md |
Trust mark claims, issuers and owners, delegation, validation, status |
references/endpoints.md |
Fetch, list, resolve, trust mark status, listing and issuance, historical keys, client authentication, errors, draft endpoints |
references/registration.md |
Automatic and Explicit Registration for OpenID Connect and OAuth 2.0 |
Related skills
openid-connect: the OpenID Connect protocol that Federation Connect registers clients for.npx skills add ScaleDockHQ/scaledock-skills --skill openid-connectopenid: the umbrella skill that routes between the OpenID Foundation specifications.npx skills add ScaleDockHQ/scaledock-skills --skill openidjwt: JWS and JWT processing that every Entity Statement relies on.npx skills add ScaleDockHQ/scaledock-skills --skill jwtoauth: OAuth 2.0 clients, authorization servers and protected resources in a federation.npx skills add ScaleDockHQ/scaledock-skills --skill oauth
Sources
Status uses the publishing body's own maturity term. Checked is the date the source was last read.
- OpenID Federation 1.0: Final, 1.0 (17 February 2026), checked 2026-10-02.
- OpenID Federation 1.1: Final, 1.1 (5 May 2026), checked 2026-10-02.
- OpenID Federation for OpenID Connect 1.1: Final, 1.1 (5 May 2026), checked 2026-10-02.
- OpenID Federation 1.0 - draft 49: Draft, draft 49 (15 February 2026), checked 2026-10-05. Read for its Document History; superseded by the Final.
- OpenID Federation 1.0 - draft 36 (Implementer's Draft 4): Implementer's Draft, ID4 (document draft 36, 31 May 2024), checked 2026-10-05. Legacy line.
- OpenID Connect Federation 1.0 - draft 17 (Implementer's Draft 3): Implementer's Draft, ID3 (document draft 17, 9 September 2021), checked 2026-10-05. Legacy line, under the earlier name.
- OpenID Connect Relying Party Metadata Choices 1.0: Final, 1.0 (25 March 2026), checked 2026-10-02.
- OpenID Federation Subordinate Events Endpoint 1.0: Implementer's Draft, ID1 (document draft 01, 3 July 2026), checked 2026-10-02. Draft posture: track, pinned to ID1.
- OpenID Federation Extended Subordinate Listing 1.0: Implementer's Draft, ID1 (document draft 03, 2 July 2026), checked 2026-10-02. Draft posture: track, pinned to ID1.