Loading…
Topic
PKCE
1 post about PKCE. Every summary links to the original.
- 1 post
- 1 company
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
Newest first
Posts
Never Share Your Password Again — The OAuth 2.0 Solution
OAuth 2.0 solves the password anti-pattern, where third-party apps required user passwords and gained full account access, by letting users authenticate only with a trusted service that issues a scoped, time-limited, revocable token. The Authorization Code with PKCE flow uses five steps: the app redirects the user to the authorization server, the user authenticates on that server’s domain, the server returns a short-lived code, the app exchanges that code server-to-server for a token, and the token is used for API calls. Four critical parameters—state for CSRF protection, code_challenge and code_verifier for PKCE, redirect_uri to prevent hijacking, and the short-lived code to limit reuse—defend against specific attacks. Scopes bound access to permissions like calendar.read, so a breached app only exposes bounded access rather than full account control. The protocol is secure enough to run every Sign in with Google button on the internet.
Related topics
All topics →Weekly digest
The best engineering reads, once a week.