Authentication verifies who you are, usually with a password, passkey, or biometric, while authorization decides what that verified identity is allowed to do, such as read a file, approve a payment, or change a setting. Authentication always comes first: a system cannot safely grant permissions to someone whose identity it has not confirmed.
Key takeaways
- Authentication answers who you are; authorization answers what you are allowed to do.
- Authentication usually happens once at sign-in; authorization is checked on every request.
- Confusing the two leads to real flaws, such as treating a login as permission to do everything.
Every login involves two questions, and most security problems start when teams blur them. The first question is identity: are you who you claim to be? The second is permission: now that we know who you are, what may you do?
What is the difference between authentication and authorization?
Authentication verifies who you are, while authorization decides what you are allowed to do. Authentication checks a password, passkey, or biometric; authorization checks your role, permissions, and the rules for the resource you requested.
Think of an office building. Authentication is the security desk checking your badge and confirming you work there. Authorization is the badge reader on each door deciding which floors and rooms your badge opens.
Both steps are needed. A correct password with no permission check would let every employee open every file. A permission system with no identity check would have no idea whose permissions to apply.
What is authentication?
Authentication is the process of proving an identity. You present a credential — something you know, have, or are — and the system checks it against what it has on record for that account.
Common authentication factors include passwords, passkeys, security keys, one-time codes, and biometrics such as a fingerprint or face scan. NIST's digital identity guidelines, SP 800-63-4, published in July 2025, describe how much confidence a system should require depending on the risk of the service, as summarized in this guide to SP 800-63-4.
Authentication usually happens once at sign-in, creating a session. That session is then trusted until it expires, you sign out, or the system asks you to prove yourself again for a sensitive action.
What is authorization?
Authorization is the decision to allow or deny a specific action by an authenticated identity. It compares who you are, what you are asking for, and the rules that govern that resource.
Authorization runs on every request, not just at sign-in. Opening a report, deleting a user, or approving a payment each triggers a fresh check, because your permissions may have changed since you logged in.
Common authorization models include role-based access control (RBAC), where permissions follow a job role; attribute-based access control (ABAC), where attributes such as department, location, and device health matter; and scopes in APIs, where a token carries only the permissions it was granted.
Authentication vs authorization: side by side
The table below summarizes the contrast. The key row is the question each one answers: authentication asks "who are you?" and authorization asks "what may you do?"
| Authentication | Authorization | |
|---|---|---|
| Question | Who are you? | What are you allowed to do? |
| When it happens | At sign-in, and again for sensitive actions | On every request to a resource |
| Based on | Credentials: passwords, passkeys, biometrics, MFA | Roles, permissions, scopes, and policies |
| Failure looks like | Wrong password, failed MFA, locked account | 403 Forbidden, even with a valid login |
| Typical token | ID token (OpenID Connect) | Access token (OAuth 2.0) |
| Governed by | OpenID Connect, NIST SP 800-63 | OAuth 2.0 (RFC 6749), application policy |
| Visible to the user? | Yes — the login screen | Mostly no — it happens behind the scenes |
| Who can change it? | Partly the user (new password, new passkey) | Only an administrator or policy owner |
If you see a 401 error, authentication failed. If you see a 403 error, authentication succeeded but authorization said no. That distinction alone helps you diagnose most access problems.
How do authentication and authorization work together?
They work as a chain: authentication establishes a trusted identity, then authorization uses that identity to make access decisions. Break either link and the chain fails.
A typical web login runs like this. You enter your email and password, and the identity provider checks them. If MFA is required, you confirm a second factor. The provider then issues tokens: an ID token that says who you are, and an access token that carries your permissions.
When you open a page or call an API, the app sends the access token. The server checks the token, looks up your roles and scopes, and allows or denies the request. If your role changes mid-session, the next authorization check should reflect it.
Where do OAuth, OpenID Connect, and SAML fit?
OAuth 2.0 is an authorization framework, defined in RFC 6749. It lets an app obtain limited access to your data on another service without seeing your password, using short-lived access tokens and scopes.
OpenID Connect (OIDC) is an identity layer built on OAuth 2.0. It adds a signed ID token that tells the app who you are, plus a standard user-info endpoint. Use OIDC to log a user in and OAuth to let an app call an API.
SAML is an older standard used mainly for single sign-on in enterprises. It also separates the two jobs: the identity provider authenticates the user, then sends assertions that the service provider uses to authorize access. The names differ, but the split is the same.
The classic mistake is using OAuth alone for login. An access token says what an app may do at an API; it does not reliably say who the user is. That is why OIDC exists.
What are everyday examples of authentication vs authorization?
Everyday life is full of both. A hotel check-in desk authenticates you by checking your ID and booking, then hands you a key card that authorizes you to open your room — but not other guests' rooms or the staff-only areas.
- Airport: showing your passport authenticates you; your boarding pass authorizes you to board a specific flight.
- Office: your badge authenticates you at the front desk; your role authorizes you to enter the finance office or the server room.
- Streaming: signing in authenticates you; your subscription plan authorizes which shows and how many screens you can use.
- Banking: your password and MFA authenticate you; your account ownership authorizes you to move money from your own accounts only.
In software, the same pattern holds. A developer who can deploy to staging but not production has passed authentication in both environments; authorization differs between them.
What mistakes do teams make with authentication and authorization?
The most dangerous mistake is treating a login as permission. If code checks only that a user is signed in, any signed-in user can reach admin functions by guessing a URL or calling an API directly.
- Checking authorization only in the user interface. Hiding a button is not security. The server must check permissions on every request.
- Over-broad roles. Giving everyone an admin role because it is easier removes the whole point of authorization. Use least privilege: the smallest permissions that let someone do their job.
- Long-lived tokens with wide scopes. An access token that lasts for days and can do everything is a stolen credential waiting to happen. Keep tokens short-lived and narrowly scoped.
- Using an ID token as an API credential. ID tokens are for the client that logged the user in. APIs should accept access tokens, not ID tokens.
- Forgetting to revoke access. When someone changes role or leaves, their permissions must be removed promptly, not just their password changed.
Phishing makes the first gate weaker, which is why phishing-resistant authentication matters. Passkeys and security keys are bound to the real site, so a fake login page cannot reuse them — a point CISA, the NSA, and the FBI stress in their joint phishing guidance.
How should a small business set up authentication and authorization?
Start with strong authentication, then add least-privilege authorization, and review both regularly. You do not need enterprise software to get the basics right.
- Turn on MFA everywhere it matters, especially email, cloud admin consoles, and banking. Prefer passkeys or security keys over SMS codes.
- Use unique, strong passwords stored in a password manager. Check whether any have appeared in breaches with our pwned password checker.
- Give people roles, not superpowers. Create a small set of roles — admin, manager, staff, read-only — and assign each person the lowest role that works.
- Remove access when roles change. Build leaver and role-change checklists so old permissions do not linger.
- Log access decisions. Record who accessed what and when, so you can spot misuse and prove what happened after an incident.
For a wider starting point, our small business cybersecurity checklist covers identity controls alongside backups, updates, and device security.
The bottom line
Authentication and authorization are partners, not synonyms. Authentication proves who you are; authorization decides what you may do. Confusing them leaves gaps that attackers walk through.
Use phishing-resistant authentication, grant the least privilege that works, and check authorization on the server for every request. Test your own passwords with the free password strength checker and start from there.
Frequently asked questions
What is the difference between authentication and authorization in simple terms?
Authentication proves who you are, like showing ID at a door. Authorization decides what you may do once inside, like which rooms you can enter. You need the first before the second makes sense.
Is authentication or authorization first?
Authentication is first. A system checks your identity at sign-in, then checks your permissions for each action you try. Some systems re-check authorization on every request, even during the same session.
Is MFA authentication or authorization?
MFA is authentication. It adds a second proof of identity, such as a code from an app or a security key, on top of a password. It does not by itself grant any permission to view or change data.
What is an example of authorization?
A signed-in employee who can read customer records but cannot delete them is seeing authorization at work. Another example is a guest account that can view a shared document but cannot edit or share it.
Is OAuth authentication or authorization?
OAuth 2.0 is authorization: it lets an app act on your behalf with limited permissions. OpenID Connect adds authentication on top of OAuth by returning a signed ID token that says who you are.
Can you have authorization without authentication?
Yes, in limited cases. A public web page authorizes anonymous visitors to read it without checking identity. But for anything sensitive, authorization without authentication is unsafe, because the system cannot tell who it is granting access to.
What happens if a system confuses authentication and authorization?
It may treat a successful login as permission to do anything, giving ordinary users admin powers. Attackers exploit this by logging in with a low-privilege account and then reaching functions or data they were never meant to touch.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against Auth0 and Okta identity guides, NIST SP 800-63-4, and the OAuth 2.0 and OpenID Connect specifications.
How we write and fact-check →