Pcornel
Browse topics
Options
Recent
Favorites
Identity · Technical reference

Federation

Direct answer

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.

When to use this

Use this when organizations or apps trust a central identity provider.

First 30 seconds

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.

Operational verification

home IdP → signed assertion → relying party

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Federation pitfalls
  • 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.
Platform / version applicability
Identity, authentication and access control
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformIdentity, authentication and access control
Scope / prerequisiteUse this when organizations or apps trust a central identity provider.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • Trust is configured with metadata and certificates.
  • Certificate rollover must be coordinated.
  • Users authenticate at home.
Key checks
  • Federation trusts list — partners
  • curl -s https://<idp>/.well-known/openid-configuration — OIDC metadata
  • curl -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.

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

ScenarioTypical technology
Enterprise → SaaS applicationsSAML 2.0 or OpenID Connect from the company IdP (Entra ID, Okta, Keycloak, AD FS)
On-premises AD → Microsoft 365Managed 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 loginsOIDC to Google, Apple, Microsoft accounts through a broker
Many IdPs to many appsA 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.com users, 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docIdentity, authentication and access control current

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%
Terminology layer

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.

Aliases that resolve here
federated identitytrust relationship federation
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Output interpretation

ObservationMeaning
Home IdP shows success, application shows failureToken rejected or mapped wrongly at the relying side — issuer, audience, certificate or claims
Home IdP shows no sign-in at allUser never reached it — home realm discovery or redirect problem
Works for internal users, fails for guestsGuest account not invited/redeemed, cross-tenant access settings, or the partner's own policy blocks
All logins for one partner fail on the same dayPartner signing certificate rolled over or expired
Users land in the app with no permissionsClaims (groups/roles) missing from the token or not mapped
Confirmation

Confirm action

Continue?