// Learning · 09
Who may do what, and how to keep secrets and data out of the wrong hands.
Authentication says who you are; authorization says what you may do.
Delegated sign-in: the app gets a token for an API, not the password.
Signed, self-contained claims the server can verify without a lookup.
Grant each identity only the permissions its job needs, and no more.
Untrusted text is read as code; keep data and code apart.
Secrets live in a vault or an identity, never in code, config or logs.
Tells the browser which other websites may read your API responses.
Another site makes your browser submit a request as you.
Encrypt data on the wire with TLS and on disk with managed keys.
No implicit trust from the network; verify every request.