Flows
Pick a grant. Watch every hop.
Authorization code + PKCE (the Google web/native flow), client credentials (machine-to-machine), device code (TV/CLI), then introspect, refresh, and revoke. Implicit and password grants are rejected on purpose — OAuth 2.1 removed them.
authorization_code + PKCE S256
Sign in, then exchange the code
- Use the public client melody-sample.
- Redirect to /authorize with S256.
- Consent, then POST /token.
client_credentials
Machine-to-machine
POST grant_type=client_credentials with the seeded machine client. Public dynamic registration cannot mint this grant. The access token is at+jwt (RFC 9068).
Local only: client id melody-machine, secret melody-machine-secret from .dev.vars.
RFC 8628
Device authorization
Start a device grant, open /device, type the user code, approve, then poll. Polling too fast returns slow_down.
————
RFC 7662 / 7009
Introspect and revoke
Introspection stays confidential: active:false means this client cannot see the token, not that the token is dead. A public client can revoke its own token. Revoking someone else's token returns 200 and is ignored. An ID token is not an access token.
Request / response
Viewer
Pick a flow. Each step prints the HTTP request and JSON body here.