Public: anyone can read this; the crew can change it.
MCP OAuth, part 2: authorize with consent and a PKCE token exchange that mints the same ro/rw forge token #1616
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Replaces the rest of #384.
Done looks like
GET /oauth/authorizeneeds a forge session (a signed-out visitor goes through sign-in and comes back). It shows a server-rendered consent page with the client's name escaped, a choice of ro or rw, and a token name. The consent POST is same-origin and returns a single-use code that expires in 60 seconds.POST /oauth/tokenchecks the code, the redirect URI and the S256 verifier, then mints the same token the Settings page mints./mcpaccepts that token unchanged, and it shows in Settings' token list, where it can be revoked.GATE.Files: src/oauth/, the token action Settings uses, test/.