Understand federation and single sign-on
Learn how identity providers make authentication assertions to other services.
- Explain identity federation, single sign-on, and the difference between authentication and delegated access.
In federated identity, one organization’s identity provider (IdP) authenticates a user and provides an assertion to a separately administered relying party. Single sign-on (SSO) lets a user access multiple services through an identity provider session. OAuth is primarily an authorization framework for delegated access; OpenID Connect adds an identity layer on OAuth 2.0. A relying party must validate assertions, audience, issuer, and other protocol requirements.
Federation reduces separate credentials but introduces trust relationships and configuration requirements. Validate signatures and protocol fields, use secure redirects, and scope delegated access. Do not treat an OAuth access token as an identity assertion unless the protocol and validation rules make it one.
Practice: follow a single sign-on
Try it
Up to 15 XPSign in to the expense app with your company account
Step through an OpenID Connect sign-in. Notice that the expense app never sees your password.
Practice: inspect a token
Try it
Up to 15 XPShould your app accept this token?
You’re the expense app (expense-app), and you trust https://id.example.com. It’s now 2026-11-05 at 10:00 UTC. In each decoded token, click the field that means you must reject it.
What’s wrong with this token?
Try it
Up to 15 XPOAuth or OpenID Connect?
They’re easy to mix up. OAuth is about delegating access, and OpenID Connect is about signing in.
“Let a calendar app read your Google contacts.”
““Sign in with your company account.””
“Allow a CI tool to post statuses to your repository.”
“Show the signed-in person’s name and email.”
Key takeaways
Explain identity federation, single sign-on, and the difference between authentication and delegated access.
Treat access as a lifecycle: grant deliberately, review regularly, and revoke promptly.
Lesson quiz
5 questions · pass with 4 correct · up to 50 XP
Passing this quiz completes the lesson and keeps your streak going. Questions you miss come back in review sessions later.
Questions about this lesson
Stuck? Ask. Figured something out? Share it. Explaining is one of the best ways to learn.
Loading posts…