Use this when organizations or apps trust a central identity provider.
Federation
Federation is a trust between an identity provider and service providers, or between organizations, so users authenticate at home and access partner applications without separate accounts.
1. Federation lets identities from one domain access another.
2. Trust via metadata and signing certificates.
3. Rotate signing certs.
4. Limit claims shared.
5. Monitor partner sign-ins.
home IdP → signed assertion → relying party
Context & applicabilityCommon mistakes · platform/version boundaries
- Expired signing certificates breaking logins — monitor expiry and use metadata URLs.
- Trusting any issuer or not validating the audience.
- Federated trust with partners left in place after the relationship ends.
- Claims mapping errors giving users the wrong roles.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
- Signing certificate expiry dates in the IdP and SP metadata.
- Federation metadata URL reachable and refreshed automatically.
- Claims sent match what the application expects (test with a SAML tracer or
jwt.ms). - Partner federations reviewed yearly; disable unused trusts.
Step 2 Verification path Verify boundary
# SAML: fetch partner/IdP metadata and check the signing certificate's validity
curl -s https://idp.partner.com/metadata.xml -o md.xml
xmllint --xpath 'string(//*[local-name()="EntityDescriptor"]/@entityID)' md.xml; echo
xmllint --xpath 'string((//*[local-name()="KeyDescriptor"][not(@use) or @use="signing"]//*[local-name()="X509Certificate"])[1])' md.xml \
| fold -w 64 | sed '1i -----BEGIN CERTIFICATE-----' | sed '$a -----END CERTIFICATE-----' | openssl x509 -noout -subject -enddate
# OIDC: issuer and keys
curl -s https://login.partner.com/.well-known/openid-configuration | jq '{issuer, jwks_uri}'
Then test one login end to end and read both sides' logs: the home IdP's sign-in log shows whether authentication succeeded and what was issued; the relying side's log shows whether the token was accepted and how it was mapped.
Step 3 Troubleshooting Narrow the fault
1. Identify which IdP handled the login and whether it issued a token (its sign-in log).
2. If yes, decode the token or assertion and compare issuer, audience, validity and claims with the relying side's configuration.
3. If the certificate or keys changed, refresh metadata/JWKS at the relying side.
4. For guests, check invitation/redemption state and cross-organisation access settings on both sides.
5. Only then look at application-level authorisation.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Trust is configured with metadata and certificates.
- Certificate rollover must be coordinated.
- Users authenticate at home.
- Federation trusts list — partners
curl -s https://<idp>/.well-known/openid-configuration— OIDC metadatacurl -s https://<idp>/FederationMetadata/2007-06/FederationMetadata.xml | head— SAML/WS-Fed metadata
ReferenceWhat it is2 sections · depth on demand
Direct Answer
Federation lets users sign in with their home organisation's identity provider to applications run by someone else, because the application trusts tokens signed by that IdP. Trust = issuer identity + signing keys + endpoints + an agreed claims contract. Most federation outages are expired or rolled-over signing certificates, wrong issuer/audience, and missing or renamed claims.
Scope and canonical references
- Protocols: SAML, OpenID Connect, OAuth 2.0.
- Roles: Identity Provider, Service Provider, Claims.
- Products and brokers: Microsoft Entra ID, Keycloak.
- Provisioning alongside federation: SCIM.
- Fault isolation: Federation Troubleshooting.
ReferenceWhy it matters1 section · depth on demand
Trust setup
Federation needs exchanged metadata: the IdP's signing certificate, entity IDs and endpoints (SAML) or issuer and JWKS URL (OIDC). The SP trusts tokens signed by that certificate.
Operational risks: expiring signing certificates break all logins (plan rollover), and a compromised IdP signing key lets attackers forge tokens for any user (Golden SAML). Protect IdP servers as tier 0.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Federation lets one organisation's users sign in to another organisation's or a cloud provider's applications using their home identity provider, without separate accounts or password copies. The resource side trusts tokens signed by the home IdP; the trust is configured once per partner instead of per user.
Common federation scenarios
| Scenario | Typical technology |
|---|---|
| Enterprise → SaaS applications | SAML 2.0 or OpenID Connect from the company IdP (Entra ID, Okta, Keycloak, AD FS) |
| On-premises AD → Microsoft 365 | Managed authentication (password hash sync or pass-through) or a federated domain to AD FS or another IdP |
| Partner organisations (B2B) | Guest accounts that authenticate at their own IdP (Microsoft Entra B2B, SAML/WS-Fed direct federation) |
| Consumer and social logins | OIDC to Google, Apple, Microsoft accounts through a broker |
| Many IdPs to many apps | A broker/hub IdP (Keycloak, Entra External ID) that normalises claims |
What trust consists of
- Identity of the issuer: SAML entity ID or OIDC issuer URL.
- Keys: the issuer's signing certificate (SAML metadata) or JWKS (OIDC discovery).
- Endpoints: where requests and responses go (SSO URL, ACS/redirect URIs).
- Claims contract: which identifier and attributes are sent, and how the relying side maps them to accounts and roles.
- Scope of trust: which users, domains or tenants may come in (for example only
@partner.comusers, or only after MFA).
Home realm discovery
With several IdPs, the broker or application must decide where to send the user — by email domain, by a chosen button, or by a hint parameter. Wrong discovery sends users to an IdP where they have no account.
Federation vs synchronisation
Synchronisation copies identities into the other directory (Entra Connect, SCIM); federation leaves them at home and trusts the home IdP's tokens. Many setups combine both: accounts are provisioned (sync/SCIM) and authentication is federated.
ReferenceConfiguration & state1 section · depth on demand
Lifecycle and ownership
- Onboarding a partner or app: exchange metadata (or issuer/discovery URL), agree on the claims contract, restrict which users may federate, test with pilot users.
- Key rollover: track signing certificate expiry for every trust; prefer metadata/discovery URLs that the relying side refreshes automatically; announce rollovers to partners in advance.
- Claims changes: treat the claims contract as an interface — version it and coordinate.
- Offboarding: remove the trust and deprovision guest or synced accounts; leftover trusts are a backdoor.
- Ownership: one team owns each trust, its certificate and its partner contact.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Single Sign-On & Federation → Federation. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc7522 · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Deep reference
Healthy vs suspicious evidence
Output interpretation
| Observation | Meaning |
|---|---|
| Home IdP shows success, application shows failure | Token rejected or mapped wrongly at the relying side — issuer, audience, certificate or claims |
| Home IdP shows no sign-in at all | User never reached it — home realm discovery or redirect problem |
| Works for internal users, fails for guests | Guest account not invited/redeemed, cross-tenant access settings, or the partner's own policy blocks |
| All logins for one partner fail on the same day | Partner signing certificate rolled over or expired |
| Users land in the app with no permissions | Claims (groups/roles) missing from the token or not mapped |