2025-08-19 · Cybersecurity

What Is Single Sign-On (SSO)?

What is Single Sign-On (SSO)?

Introduction

Many websites offer a “Single Sign-On” option when you log in. For example, signing in to your Google account lets you access services such as YouTube and Gmail. Explore the pain points that SSO addresses, the potential problems with logging in across multiple services, and the workflows that make sign-in more convenient and secure.

Understanding the Problem

When people use many accounts and passwords to log in to different websites, they tend to choose simple, memorable passwords or reuse the same password to make them easier to manage. This leads to a poor user experience and potential security vulnerabilities. SSO emerged to deliver on the promise of “sign in once, access everything.”

How SSO Works

SSO is built on the concept of federated identity. For example:

Company B has signed a partnership agreement with Company A, so employees only need to show their Company A employee badge to enter Company B’s building, without having to obtain a separate access card for Company B.

Understanding the Terminology

  • SAML
    • Service Provider (SP): The party that provides a service, such as Slack or Notion
    • Identity Provider (IdP): The party that verifies a user’s identity. For example, when you choose “Sign in with Google,” Google is the IdP
  • OIDC
    • Relying Party (RP): An application or service that needs to verify a user’s identity
    • OpenID Provider (OP): The equivalent of an IdP, acting as a trusted third party for user authentication

Understanding SSO Implementation Standards and Protocols

Security Assertion Markup Language (SAML)

Security Assertion Markup Language (SAML) is an XML-based standard.

[Employee badge is invalid]alt[Employee badge is valid]1. Attempt to accessCompany B's system2. Redirect to CompanyA's authentication system(SAML AuthnRequest)3. Present Company A employee badge to theauthentication system4. Verify employeeidentity(Check employee badgevalidity)5. Return SAML Response(Containing employee identity information)6. Submit SAMLResponse to CompanyB's system7. Validate SAMLResponse(Confirm it comes fromtrusted Company A)8. Establish a loginSession for Company B'ssystem9. Successfully accessCompany B's system5. Authentication failed6. Return to Company B'ssystem7. Deny accessThe employee is already signed in at Company A and holds avalid employee badge (Session)Under the partnership agreement, Company B trustsCompany A's authenticationThe employee can nowuse Company B's serviceswithout obtaining aseparate Company Baccess cardEmployeeCompany B System(Service Provider)Company AAuthentication System(Identity Provider)EmployeeCompany B System(Service Provider)Company AAuthentication System(Identity Provider)

OIDC (OpenID Connect)

Built on OAuth 2.0, OIDC combines authorization and authentication. Whereas SAML uses XML, OIDC uses JWT-formatted tokens.

[Authentication fails]alt[Authentication succeeds]1. Attempt to accessCompany B's system2. Redirect to the Googlesign-in page(Authorization Request)3. Sign in to Google account4. Verify identity(Username andpassword, multi-factorauthentication, etc.)5. Return authorization code (Authorization Code)6. Send authorizationcode back to CompanyB's system7. Exchange authorizationcode for tokens(Access Token + IDToken)8. Issue tokens (IncludingID Token)9. Validate ID Token(Check signature,expiration, etc.)10. Sign-in successful,access Company B'sservices5. Authentication failed (Error message)6. Return to Company B'ssystem7. Deny accessThe RP has now verifiedthe user's identityand established a localSessionUserCompany B System(Relying Party)Google(OpenID Provider)UserCompany B System(Relying Party)Google(OpenID Provider)

Kerberos

Kerberos is commonly used in internal networks and is especially widely deployed in Windows domains, such as Active Directory. It uses symmetric-key encryption and tickets to prove identity, providing a fast and secure SSO experience within enterprise networks.

1. Sign in and request aTGT (Enter usernameand password)2. Issue TGT(Ticket-Granting Ticket)3. Use TGT to requestaccess to a service4. Issue Service Ticket(Service ticket)5. Present Service Ticket to access theservice6. Authentication successful, grant accessUserKDC(Key DistributionCenter)Service ServerUserKDC(Key DistributionCenter)Service Server

Summary

  • SAML (2002): Originated in enterprise environments, particularly traditional IT and intranet applications, and was designed primarily for browser-centric web applications.
  • OIDC (2014): An extension of OAuth 2.0 designed specifically for modern web and mobile applications, taking into account the needs of API-driven applications, apps, and single-page applications (SPAs).
  • Kerberos (1980s): Primarily used within enterprise networks and especially widely deployed in Windows domains (Active Directory). It uses symmetric keys and tickets to deliver a fast, secure SSO experience while avoiding repeated password transmission over the network.

Single Sign-On (SSO) allows users to securely sign in to and access multiple websites and services with a single set of credentials, greatly improving convenience and administrative efficiency.

Although users no longer need to set a different password for each website, reducing the risk of attacks that exploit reused or overly simple passwords, this convenience also introduces risks: if the primary SSO account is compromised, an attacker could gain access to all associated services. In addition, because an SSO system centralizes authentication, an outage creates a single point of failure that can prevent users from signing in to any service.

Further Reading