DumpAny

OAuth 2.0 Authorization Code + PKCE

Speed:
Ready — Click play to start the demo
OAuth 2.0 Authorization Code + PKCE
How does a third-party app safely get your account data? Authorization Code + PKCE (RFC 7636) is the recommended OAuth flow — a code_challenge/code_verifier pair proves client identity and stops intercepted auth codes from being replayed.
💻User Browser📱Client App🔑Auth Server🖥Resource Svr↩️Redirect URI点击「Login」Login with Google重定向授权端点response_type=code · code_challenge=S256(verifier) · statePKCE:登录前生成随机 code_verifier → code_challenge = BASE64URL(SHA256(code_verifier)),换 token 时用 verifier 证明身份