part 1Foundations: before OAuth·lesson 1.1 of 5·3 min read
Authentication vs. authorization
Authentication and authorization are two different questions that we usually squeeze into a single word: "auth". This lesson separates them, explains why OAuth is a delegated authorization protocol, and introduces the three actors of MCP authorization: the user, the client and the server.
In this lesson
Tell authentication (who you are) apart from authorization (what you are allowed to do).
Explain why OAuth is a delegated authorization protocol.
Distinguish the user from the client (the application).
Two questions, not one
Authentication is verifying identity: who are you? It is answered with something that proves you are who you claim to be: a password, a fingerprint, a certificate, a code sent to your phone.
Authorization is deciding permissions: what are you allowed to do? It is answered by looking at rules: this user can read files but not delete them; this application can read the calendar but not send email.
They usually happen in that order (first I find out who you are, then I decide what you can do), but they are separate problems. You can be perfectly authenticated and still lack permission (that is a 403, covered in lesson 1.4).
Three actors, not two
On the classic web there were two parties: you and the server. OAuth adds a third one: the application acting on your behalf. In MCP:
Who
Example in MCP
What it wants
User (person)
You
The AI to read your GitHub issues
Client (application)
Claude Desktop, Claude Code, an IDE
To call the MCP server's tools
Server (resource)
A GitHub MCP server
To know whether it should serve the request
The server's question is no longer just "who is the user?" but "does this application have the user's permission to do this, and how far does that permission go?". That is delegated authorization: the user delegates a limited permission to the application without giving it their password.
What about "Sign in with Google"? Isn't that authentication?
Yes, but that is OpenID Connect (OIDC), a layer built on top of OAuth 2.0. OAuth gives you an access token ("you may do X"); OIDC adds an ID token ("this is user Y, authenticated at such-and-such time"). MCP uses OAuth to authorize calls; from OIDC it only borrows the discovery path (see lesson 3.3).
Summary
Authenticate = who you are. Authorize = what you can do.
MCP has three actors: user, client (app) and server.
OAuth solves delegated authorization: limited permissions for an app, without passwords.
A client is the application (for example Claude Desktop) acting on behalf of the user, who is the person.
quiz · 2 questions
1. An MCP server receives a request carrying a valid token for alice and checks that the token includes the files:write permission before letting her write. What is it doing at that moment?
The identity is already resolved by the token; what the server is doing now is deciding whether that specific operation is allowed. That is authorization.
2. What does "delegated" mean in "delegated authorization"?
The central point is that the application never sees the password: it receives a bounded permission (in the form of a token) that the user approved.