SSO - Single Sign-On

Harjot SinghHarjot Singh
2 min read

Passwords are a mess!
Especially when you need to memorize that one password that you have used on a particular website 😥

But no worries SSO will hold your hand and help you to surf over this digital ocean effortlessly 😎

But what is SSO?
Single Sign-On (SSO) is an authentication process.

Users can access multiple applications or websites using only a single login credentials.

There are 3 main components:

1. Identity Provider (IdP)

-Authenticates user identities and provides tokens to prove their identities to others.
-When a user tries to access a service, the service redirects the user to the IdP.
-The IdP asks the user to log in and validates the credentials.
-Once validated, it sends a token back to the service provider.

2. Service Provider (SP)

-Provides the end service (like a dashboard, tool, or app) the user wants to use.
-When a user tries to access the service, the SP receives a token from the IdP.
-The SP validates the token and grants access to the service.

3. Identity Broker
-Sits between the IdP and multiple SPs to translate the authentication credentials.
-It is helpful in scenarios where multiple IdPs or SPs use different standards.
-The Identity Broker receives the token from the IdP and translates it into a format that the SP can understand, or vice versa.

The Workflow
-Initial Request: The user accesses one of the service providers for the first time. This service provider redirects the user to the Identity Provider (IdP).
-Authentication: The IdP prompts the user for credentials. After verifying them, the IdP generates a token.
-Token Issued: The IdP sends this token back. The service provider validates the token and grants the user access to the service.

Next Access: The system reuses the same token or session when the user attempts to access another service within the SSO scope. This way, the user doesn’t have to log in again.

Pros

- Easier for users.
- Centralizes account management.
- Reduces password fatigue.

Cons

- If the IdP is compromised, multiple services are at risk.
- Complexity in setup and maintenance.

SSO sounds simple, but the reality is different

Feel free to add anything I missed 😊🌱

0
Subscribe to my newsletter

Read articles from Harjot Singh directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Harjot Singh
Harjot Singh

I'm Harjot Singh Skilled in Java, with a knack for Data Structures and Algorithms. Educational solid professional with a Bachelor of technology-focused in Computer Science Engineering from Chandigarh Engineering College. Find me doing Data Structures and Algorithms, I enjoy solving problems on Leetcode and doing projects to solve the problems. I learn, build and optimize. I love to work alone, but when I am in a team I become more creative, and working in a team makes me better. I focus on making products that make life easier⚙️. I enjoy meeting new people, discussing ideas, projects, emerging tech, and hearing new perspectives.