Introduction
Imagine having to remember a different password for every website or app you use. This can be frustrating and unsafe. Single Sign-On (SSO) solves this problem by letting you log in once and access many services without signing in again.
Think of a shopping mall with many stores inside. Instead of paying separately at each store, you get a special wristband at the entrance after paying once. This wristband lets you shop in all stores without paying again.
┌───────────────┐ ┌───────────────┐ ┌───────────────┐
│ User tries │──────▶│ Service A │──────▶│ Check SSO │
│ to access │ │ (App/Website)│ │ Authentication│
└───────────────┘ └───────────────┘ └───────────────┘
│ │
│ ▼
│ ┌───────────────┐
│ │ User logs in │
│ │ once at SSO │
│ └───────────────┘
│ │
│ ▼
│ ┌───────────────┐
│ │ SSO sends │
│ │ token to │
│ │ Service A │
│ └───────────────┘
│ │
▼ ▼
┌───────────────┐ ┌───────────────┐
│ Access to │ │ Access to │
│ Service A │ │ Service B │
└───────────────┘ └───────────────┘