Skip to content
Wallet and Entity Collection draft updates
Documentation menu

1. Federation participants

Feature guides

eduGAIN starts with a participation agreement and trusted keys. Each participant then chooses its federation host and attaches the protocol roles it needs. Federation §2.

Choose TrustAnchor, Intermediate, or Leaf for the federation host, then attach the OIDC or Wallet roles the application needs. The host owns publication and federation routes; a role supplies the protocol-specific metadata and operations.

Example context

Meet the academic federation from Appendix A

eduGAIN is the selected Trust Anchor. SWAMID and InCommon are its Intermediates in this example. SWAMID enrolls Umeå University, which enrolls its OP; InCommon enrolls the LIGO Wiki, which acts as the RP. Maya is the researcher signing in at her university to use the wiki.

This follows the illustrative topology in Federation Appendix A. The runnable examples use reserved .example addresses, not production services. The additional Research Portal and Research API are supplementary examples for roles beyond that topology. Example identifiers keep those actors distinct.

Bring a participant into the federation

Begin with the relationship between the organizations. eduGAIN approves Umeå as a participant and agrees which federation keys and metadata it will attest. Umeå publishes its own Entity Configuration and points to its Superior; the Superior stores Umeå's enrollment and serves the corresponding Subordinate Statement.

LIGO Wiki receives eduGAIN's anchor configuration through its trusted administrative process. It can then discover Umeå and validate the connected evidence. The approval process, key provisioning, and application deployment happen outside the signed-message exchange, so assign an operator to each before testing discovery.

A useful first milestone is a consumer that accepts Umeå through the intended anchor and rejects the same evidence with an unrelated anchor set. Once that works, add protocol roles and policy. This keeps an enrollment or routing mistake separate from a later OIDC configuration failure.

Work through this topic

Enrollment is an operator decision. An Entity Identifier or an uploaded EC alone does not prove that an organization should join.

Common questions

What is the difference between TrustAnchor and Intermediate?

A TrustAnchor represents a root of trust for its participants and can also specify authorityHints to participate under another federation. Its Trust Mark issuer/owner policy remains available in this configuration. An Intermediate is a subordinate authority that must list at least one superior authority in authorityHints. Intermediates also cannot carry trustMarkIssuers or trustMarkOwners metadata block configurations since those claims are reserved for Trust Anchors.

How do I enroll a subordinate entity?

Use await ta.registerSubordinate(record) to validate publication claims, sanitize metadata, supply timestamps, and record configured lifecycle events in the same transaction. Direct storage.subordinate.register(record) calls bypass that lifecycle layer. Adapter implementations and applications using low-level writes must supply complete records and maintain the required validation and event updates themselves; see storage adapters.

Why does subordinate storage reject my metadata?

A subordinate's metadata block in the storage record must not carry operational fields (such as federation_fetch_endpoint or federation_list_endpoint) inside metadata.federation_entity. Import sanitizeSubordinateMetadata(metadata) from @oidfed/core to strip those fields before calling registerSubordinate() or updateSubordinate().

Subordinate metadata excludes operational endpoint fields. Federation §§8.1, 8.2, and 8.4 require Entity Configuration publication for fetch, list, and Trust Mark Status endpoints; Extended Listing §4 imports the list restriction. oidfed also reserves the other operational endpoint fields and authentication companions to the host's Entity Configuration as a library policy.

Is explicit client registration handled automatically?

Compose an OidcProviderRole from @oidfed/oidc into the entity's roles. The parent initializes its registration handler and dispatches matching requests through handleRequest(). Connect registration hooks to your OP's client store. Automatic registration still needs a call from the OP's authorization or PAR flow.

Next: 1.1. Choose a federation host and compose protocol roles

View source on GitHub