What are SSO and 2FA? Explained with a hotel key card and a PIN
Single sign-on lets you check in once and use many apps; two-factor login asks for a second, different proof. Explained with one hotel key card plus a PIN.
- Author
Umair Mateen- Published
- Reading time
- 5 min
- Category
- Engineering
In one sentence: Single sign-on (SSO) lets you prove who you are once, at one trusted sign-in service, and then use many work apps without logging in to each, while two-factor login (2FA) means that sign-in needs two different kinds of proof, such as a password plus a code from your phone.
The everyday picture
Think of checking in at a large hotel. You show your ID at the front desk once. The desk gives you one key card. That card opens your room, the gym, the pool and the breakfast room. You do not queue at a separate desk for each door.
That is single sign-on. The front desk is the one place that checks who you are. Every door in the hotel trusts the desk, so it only needs to see the card.
Now imagine the hotel adds one more rule. Before the card is issued, you must also type a PIN that only you know. A thief who picks up your ID still cannot get a card without the PIN. That second, different kind of proof is two-factor login.
You prove who you are at one front desk, with a password and a second, different proof. The desk gives you one key card, and every app trusts it.
How it works, step by step
- You open a work app (you walk up to a door). The app does not check your password itself. It sends you to the company's sign-in service.
- The identity provider (the front desk) asks you to prove who you are, usually with a password or a passkey. This is the only place you sign in. NIST, the US standards body, describes SSO as one account and its sign-in methods being used to reach many applications.
- The second factor (the PIN) is checked next. It must be a different kind of proof from the first. The three kinds are something you know (a password or PIN), something you have (your phone or a security key) and something you are (a fingerprint or face scan).
- The sign-in service issues a token (the key card). This is a signed digital note that says "this person checked in", and it expires after a while.
- Each app trusts the token (each door opens for the card). You move between email, files and the sales system without typing your password again.
Try it · Myth or fact
Key cards and PINs: myth or fact?
Decide for yourself first, then tap each statement to check it.
0 of 4 checked
Where the picture stops
- A hotel card works until you check out. A sign-in token usually runs out much sooner, so you may be asked to sign in again during the day.
- The second step is not always a PIN. It can be a code in an app, a tap on your phone, a fingerprint or a small security key. Some are much harder to trick than others.
- Hotel doors all belong to one building. With SSO, the apps can come from many different companies that each agree to trust the same front desk.
Why it matters for your business
- Fewer break-ins. CISA, the US cyber security agency, says multi-factor login can prevent a significant number of account compromise attacks. A stolen password alone is no longer enough.
- Clean starts and exits. With SSO, a new starter gets one account and a leaver loses access to every connected app when that one account is switched off.
- Fewer passwords to reuse. Staff remember one strong sign-in instead of a dozen weak ones.
- One master key to guard. SSO puts every app behind one sign-in, so that sign-in needs the strongest second step you can manage. CISA calls phishing-resistant methods, such as a FIDO security key, the gold standard.
Try it · What would you do?
Eight tools, eight passwords. What should the studio do?
A 25-person studio uses eight online tools, each with its own password. The owner wants safer logins without slowing staff down, and wants leavers locked out the same day.
Pick what you would do. You can change your mind.
An example
Imagine a 25-person design studio. Staff use email, file storage, a project board and an accounts tool, each with its own password. The studio connects all four to one sign-in service and turns on two-factor login there. Staff now sign in once each morning and confirm with their phone. When a designer leaves, the office manager switches off one account and every tool locks at once.
Frequently asked questions
What is the difference between 2FA and MFA?
Two-factor authentication (2FA) uses exactly two kinds of proof. Multi-factor authentication (MFA) means two or more. People often use the two terms for the same thing.
Is SSO safe?
It is as safe as the one sign-in that protects it. Paired with a strong second factor, it is usually safer than many separate passwords, because there is one well-guarded door instead of many weak ones.
Are text-message codes good enough?
CISA says any MFA is better than none, but text and email codes are the simplest and weakest form. Authenticator apps are stronger, and security keys or passkeys are stronger still.
Is a password plus a security question two-factor?
No. Both are something you know. Two-factor login needs two different kinds of proof, such as something you know plus something you have.
Related explainers
- What is role-based access? Explained with office keycards
- What is encryption? Explained with a sealed envelope
- What is an audit trail? Explained with a visitor logbook
The DevDrift builds business platforms with secure sign-in and clear permissions: see how.
Sources
Could you explain this to a colleague now?
Mark it and posts that mention it will show a tick. Saved in this browser only.