Authentication vs Authorization

Half of all identity confusion — and a surprising share of security bugs — comes from blurring two words that sound alike and mean opposite things. Authentication asks "who are you?"; authorization asks "what are you allowed to do?" Every protocol in this series exists to answer one or the other, and mixing them up is how you build systems that are both insecure and broken.

Identity is one of those topics engineers use daily and understand shakily. OAuth, OIDC, SAML, tokens, sessions, SSO — the vocabulary is a thicket, and much of the confusion traces to one root distinction this first post nails down: authentication versus authorization. Get this clear and the entire series — and the protocols themselves — become far more legible, because each one is fundamentally an answer to one of these two questions.

The two questions

Every access-control system answers two distinct questions, in order:

The order matters: you authenticate first (establish who), then authorize (decide what they can do). You can’t sensibly decide what someone may do until you know who they are. They’re sequential, related, and — critically — not the same thing.

Why the distinction is more than pedantry

Blurring these isn’t a vocabulary nitpick; it causes real, common security failures:

So the distinction is load-bearing: the protocols, the tokens, and the vulnerabilities all sort into “authentication” or “authorization,” and reasoning about identity correctly starts with knowing which one you’re dealing with.

Mapping the protocols to the questions

Here’s the payoff that makes the rest of the series click. Each major protocol is primarily an answer to one of the two questions:

                  "Who are you?"          "What can you do?"
                  (Authentication)        (Authorization)

  OAuth 2.0             —                  ✔ delegated authorization
  OpenID Connect   ✔ authentication       (built on OAuth's authorization)
  SAML             ✔ authentication       (also carries authorization attributes)

The pattern: OAuth answers what can you do; OIDC and SAML answer who are you (with OIDC building on OAuth). The series is essentially OAuth for authorization, then OIDC and SAML for authentication, then the tokens and sessions that carry both, then how to secure it all.

Why identity got complicated: delegation and federation

If authentication is just “check a password,” why the elaborate protocols? Because two needs made identity genuinely hard, and the protocols exist to meet them safely:

Both introduce a third party into what used to be a simple two-party (user ↔ app) exchange, and coordinating that trust securely — proving who vouched for whom, with tokens that can’t be forged or replayed — is why the protocols have the structure they do. The complexity isn’t gratuitous; it’s the cost of delegating access and federating identity without sharing passwords.

The mental model to carry forward

As the series covers each protocol, keep asking the orienting question: is this answering “who are you” or “what can you do”?

That single distinction organizes the whole domain. With it clear — plus the delegation and federation needs that drove the protocols — you’re ready for the first and most misunderstood of them: OAuth 2.0, the authorization framework.

Key takeaways

Further reading

Sources & References

OAuth authorization framework
OIDC authentication