Antonio Braccolino, Identity & Access, home
EN · Language: English

IAM interview questions · Fundamentals

What is identity federation?

In plain wordsTwo countries agree to recognise each other’s passports: you travel with the one you already have.

How it works

Federation is a trust agreement between an identity provider and a service provider, possibly in different organisations. The IdP authenticates the user and issues a signed statement; the SP verifies the signature with the IdP’s public key and trusts the content.

The trust is set up once: SAML metadata (entity IDs, endpoints, certificates) or OIDC discovery and client registration. The statement carries a stable user identifier and attributes or claims (email, groups) that the SP maps to its own accounts and permissions.

Federation removes passwords from the SP, but the SP still decides authorization, and certificate rollover must be planned or logins break on the expiry date.

A concrete example

A company uses a SaaS for travel bookings. Instead of creating passwords on the SaaS, it federates: employees log in with the corporate IdP, the SaaS receives NameID = employee ID and an attribute costCenter, and creates the account on first login (just-in-time provisioning).

Mistakes to avoid

  • Using email as the unique identifier: emails change and get reused.
  • Forgetting that federation does not deprovision: a disabled user may still have a local account and session on the SP.

They may also ask you

  • What happens when the IdP signing certificate expires?
  • What is the difference between federation and SSO?