IAM interview questions · Fundamentals
What is single sign-on and how does it work?
In plain wordsYou show your ticket once at the festival entrance, then the wristband gets you into every stage.
How it works
SSO relies on federation: each application (service provider or relying party) has a trust relationship with an identity provider, set up once by exchanging metadata, certificates or client credentials.
When a user opens an app without a session, the app redirects to the IdP. If the IdP already has a session (its own cookie), it does not ask for credentials again and immediately sends back a signed SAML assertion or OIDC tokens. The app validates them and creates its own local session.
So there are at least two sessions with different lifetimes. Single logout has to tell every app to drop its session, which is why it is fragile: front-channel logout depends on the browser, back-channel logout needs every app to implement it.
A concrete example
An employee logs into the IdP at 9:00 with a passkey. At 9:05 they open the HR portal (SAML) and at 9:10 the expense app (OIDC): no new login, each app receives its own signed statement. If the IdP session lasts 8 hours but the expense app keeps a 30-day session, leaving the company at noon will not close that app unless deprovisioning or back-channel logout does it.
See it in action: one login, many apps
Mistakes to avoid
- Thinking SSO means the same password everywhere (that is password sync, not SSO).
- Forgetting that SSO concentrates risk: the IdP account needs the strongest MFA.
They may also ask you
- What is the difference between IdP-initiated and SP-initiated SSO?
- How would you implement logout across ten applications?