Skip to content
Wallet and Entity Collection draft updates
Documentation menu

11. Operating a federation application

Feature guides

A successful trust check still depends on the host’s storage, network policy, clock, and operational controls. The library exposes contracts for those services so each deployment can supply them. Federation §§17–19.

Connect durable storage and federation keys to the host, and connect protocol-specific replay stores and callbacks to the appropriate role. Configure transport and logging in those same options so the operation that uses them also produces the expected diagnostics and failures.

Example context

Meet the academic and driving licence participants

In the academic example, Maya signs in through Umeå University's OP to use the LIGO Wiki. Its chain goes through SWAMID to eduGAIN, while the wiki's chain goes through InCommon to the same selected anchor. The supplementary Research Portal and Research API illustrate additional application roles.

In the driving licence example, a Licensing Authority issues Maya's licence, a Wallet Provider supplies her wallet solution, and a Car Rental Company verifies presentations. The example federation establishes participant trust; the applications still own their protocol and business decisions.

The academic topology comes from Federation Appendix A; the Wallet roles follow Wallet Draft 05 §4. Runnable examples use the reserved addresses in the identifier table.

Operate the same workflow across processes

The examples run in one process so the trust relationships are easy to inspect. A deployment adds durable keys, authoritative storage, shared replay decisions, HTTPS routing, network limits, and observability. Decide which component owns each before distributing the service across workers.

Begin with the host's Web API handler and a real externally reachable Entity Configuration. Add subordinate storage and protocol integration, then test concurrent requests and restart. A cache can be disposable; accreditation and enrollment state usually cannot. Cancellation should release a waiting caller without corrupting a write already owned by storage.

Finally, use host-supplied logging to identify failed stages and configuration recommendations. Keep those messages separate from the result that controls acceptance. An unavailable log sink must not decide whether a chain, proof, or registration is accepted.

Work through this topic

These pages distinguish specification obligations from adapter contracts and deployment choices. Logging supports diagnosis; it does not replace rejection or application authorization.

Deployment operations

The following are deployment recommendations. The linked sections explain the protocol concerns behind them. They do not prescribe backup systems, monitoring tools, or clock-synchronization services.

  • Restrict access to private keys, registration secrets, and administrative mutation paths. Federation §3.1.1 defines published federation JWKS as public keys. Follow oidfed's key custody contract: keep private material behind the provider and out of authority records and published metadata.
  • Back up authoritative storage and key-provider state. Test recovery of historical public keys, event histories, registration deadlines, and replay state without allowing accepted proofs to be replayed. Plan recovery around oidfed's storage guarantees; the specifications define no backup protocol.
  • Synchronize clocks across serving processes. Federation §10.2 requires time checks; JWT §4.1.4 permits small leeway for clock skew. Account for the configured acceptance window when retaining replay records and scheduling expiry and rollover.
  • Monitor refresh failures, snapshot age, signing failures, replay-store errors, and expiring evidence using oidfed's refresh and replay contracts. Follow Federation §11.3 when handling persistent independent-key mismatches. Choose alert thresholds for your deployment.
  • Define how to respond to key compromise and loss of authoritative state, including recovery procedures. The framework chooses any additional federation revocation process under §11.4.
  • Limit published Entity Statements to organizational information needed for federation, following §19.1. Consider the tracking risks of Trust Mark Status and Fetch requests and the mitigations discussed in §19.2 and §19.3.

Next: 11.1. Persist federation state with transaction guarantees

View source on GitHub