Episode 3 of 3 · 12:16
MCP Authorization Deep Dive: Scopes, Step-Up and Token Exchange
What this episode covers
What an MCP server does with the access token, on a real server on Cloudflare: what the token is and why the server keeps only its hash; the token's audience and the resource parameter (RFC 8707); scopes, and the one tool that checks for write; step-up authorization, a 403 insufficient_scope that sends the person back to the consent page; the user's identity carried from the token to every query; why a server must never pass the token through to another API; OAuth token exchange (RFC 8693) running for real between the MCP server and a document store; refresh with rotation; and revocation. Every browser page and terminal in it is a real capture.
At the end: the token exchange script to run yourself against the live server, and the code behind every check.