Authentication and scopes
Session cookies for humans, scoped tokens for machines, CSRF for mutations.
Authentication and scopes
Overview
Browsers authenticate with an HttpOnly session cookie plus a CSRF token on mutating requests.
Contract
Machines authenticate with scoped bearer tokens; scopes are read, write, publish and admin.
Usage
Tokens are hashed at rest and shown exactly once at creation time.