Supported pieces
The current OAuth implementation includes:- dynamic client registration
- authorization request inspection
- token exchange
- refresh token flow
- PKCE verification for authorization code exchange
Redirect URI rules
Redirect URIs must be:https://...- or local development URLs on
http://localhostorhttp://127.0.0.1
Register a client
UsePOST /oauth/register with:
client_nameredirect_uris- optional
grant_types
Authorization flow
High-level flow:- register a client
- redirect the user into the OAuth approval flow
- inspect pending authorization with
GET /oauth/request - exchange the authorization code at
POST /oauth/token - refresh tokens as needed
Security expectations
- always use PKCE for authorization code flows
- validate redirect URIs tightly
- store refresh tokens securely
- revoke access when an integration is no longer trusted
