Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Federation

Choose a federation journey: OpenIAM as the identity provider, or as the service provider.

One question picks your page: who authenticates the user?

Journey
Who authenticates
Who consumes the result
Choose this when…
End-user experience

OpenIAM

Entra ID (via domain federation — sign-in for an entire Entra domain is redirected to OpenIAM)

OpenIAM is your source of truth and users should reach Microsoft 365 with OpenIAM credentials

User types their address at office.com → redirected to OpenIAM login → lands in Microsoft 365

OpenIAM

Google Workspace (via a third-party SSO profile scoped to an OU or group)

Same, for Google Workspace

User signs in at Google → redirected to OpenIAM login → lands in Gmail/Drive

Microsoft Entra ID (via an enterprise application)

OpenIAM

Users live in Entra and should reach OpenIAM's portals with Microsoft credentials

User hits OpenIAM → redirected to Microsoft login → lands in SelfService

Google Workspace (via a custom SAML app)

OpenIAM

Users live in Google and should reach OpenIAM with Google credentials

User hits OpenIAM (or the Google app launcher) → Google login → lands in SelfService

All four use SAML 2.0. Each page is complete on its own. If you just want the lowest-risk first federation win, start with Entra ID IdP → OpenIAM SP — it adds a sign-in path without changing how anyone signs in anywhere else. The two journeys where OpenIAM is the IdP redirect authentication for a whole domain or OU and carry real blast radius; their pages open with the safety work.

What these POCs prove: OpenIAM can issue standards-compliant SAML assertions that Microsoft and Google accept (14–15), and can consume theirs (16–17), with users matched between directories. What they don't prove: production topics like certificate lifecycle automation, attribute-rich claims mapping, JIT provisioning at scale, or SLO in every combination — those come after, via the Administration Guide's SSO chapter.

Shared prerequisites (all journeys)

  1. HTTPS with a publicly trusted certificate, reachable from the internet (Enable HTTPS). Microsoft and Google both require it; self-signed certs fail here.

  2. A test tenant and a disposable test population. Never run a first federation against a production domain, OU, or tenant.

  3. Time sync on the OpenIAM host (Prepare your lab) — assertions are timestamped; OpenIAM rejects messages outside a 10-minute window, and providers are equally strict.

  4. A second admin session open in a separate browser for every change, and test users that hold no privileged roles.

  5. Do all sign-in testing in private/incognito windows — cached sessions are the number-one source of federation confusion.

OpenIAM-side model (shared by all four)

Where providers live: Webconsole → Access Control → Authentication Providers → create a new provider → type SAML Identity Provider for the journeys where OpenIAM is the IdP, or SAML Service Provider for the two where it is the SP.

Two conditions gate every SSO sign-in through OpenIAM:

  1. The user must be entitled to the provider's resource. Grant it through a role: open the role → Entitlements → add the resource of type Authentication provider. An un-entitled user is refused with an authorization error even after authenticating.

    An authentication provider record showing its Linked to Resource - the resource a user must be entitled to before the provider will let them through
  2. The user must have a login on the provider's Linked to Managed System. That login is what feeds (IdP role) or matches (SP role) the SAML NameID. For these POCs, link the default OpenIAM managed system so the user's OpenIAM login/email is used.

Metadata endpoints (replace <id> with the provider's ID, visible after saving):

Role
Metadata URL

OpenIAM as IdP

https://<openiam-host>/idp/saml2/idp/metadata/<id>

OpenIAM as SP

https://<openiam-host>/idp/saml2/sp/metadata/<id>

Prefer metadata exchange over hand-copying: the IdP form has Import from Service Provider Metadata, the SP form Import from Identity Provider Metadata — each consumes the other side's metadata file and pre-fills URLs, certificates, and NameID formats. (Entra is the exception in one direction: it does not read IdP metadata — OpenIAM IdP → Microsoft Entra ID configures the Entra side by PowerShell.)

Signing certificate: each provider carries a keypair — Generate a new key creates a self-signed RSA-2048 certificate valid 2 years; you can also upload your own. Download it via Download Signing Public Key; it is also published in the metadata. Regeneration cannot be rolled back and immediately breaks the trust until the other side gets the new certificate.

Certificate expiry is the classic "federation broke a year later" incident. Record the expiration date (shown on the provider page), assign an owner, and calendar the renewal — the counterpart (Entra federation config, Google profile, enterprise app) must receive the new certificate before the old one expires.

When things go wrong at any point: Federation troubleshooting and recovery.

Last updated

Was this helpful?