Single sign-on and federation
Also called: SSO, Identity federation, SAML and OpenID Connect
Single sign-on (SSO) lets one account and one login at an identity provider (IdP) open many applications: each application trusts a signed assertion or token from the IdP instead of checking your password itself. Federation, with standards such as SAML and OpenID Connect, sets up that trust, and it also means a stolen IdP login can open every application you use through it.
Feedback on this video?
Read the transcript
1. What it is
With single sign-on, or SSO, one account and one login get you into many applications. It is usually built on federation: systems pass login information to each other, using SAML or OpenID Connect. The identity provider, or IdP, logs you in. Each app is a service provider, also called a relying party. Trust is set up in advance: each app gets a public key from the IdP. The app never checks your password itself.
2. A login, step by step
For example, you open your company's mail app. You have no session there, so it sends your browser to the IdP. You are not logged in at the IdP yet, so you type your password there. The IdP creates an assertion, a signed statement that you are logged in. Your browser carries it to the mail app. The app checks the signature with that key, and that the assertion is for this app and still valid. Then it lets you in. Next, you open the payroll app. The IdP still has your session, so it can send a new assertion without your password.
3. SAML and OpenID Connect
SAML is based on XML. Its signed statements are called assertions. OpenID Connect adds an identity layer on top of OAuth 2.0. Its signed statement is the ID Token, a JSON Web Token.
4. The risk, and how to protect it
The risk is concentrated in the IdP. A stolen IdP login can open every app you use through it. So protect the IdP login with strong MFA. You set it up once, at the IdP, for every app.
5. Recap
To recap: one login at the IdP opens many apps. The apps trust the assertions it signs. So protect that login with strong MFA.
Test yourself
One practice question on Single sign-on and federation. Pick an answer, then check it.
Question 1
A company is using an Identity Provider (IdP) and a Service Provider (SP) in their identity federation setup. Which entity is responsible for generating SAML tokens?
Practice questions by exam
Each exam below has at least 10 practice questions on this concept.