A worked example, rendered from real sample data. Sign in to run the tool on your own input.
generatecode_verifier: a4~tU-OVjL_NCBiwBL9h~YuB.EVrHrnA3tKCT.IfbjCkL~QeBul74MKTMTa9iuSB
code_challenge: emNlvascvRz5hLDfK0utiwDV_imXNXxlkLDWKgxPOG0
code_challenge_method: S256
state: 82uk7r7Xq0g4oufcW_sV5A
nonce: Y8tPwBvUqrD05AlUYb6ZXw
Authorization request parameters:
response_type=code&state=82uk7r7Xq0g4oufcW_sV5A&code_challenge=emNlvascvRz5hLDfK0utiwDV_imXNXxlkLDWKgxPOG0&code_challenge_method=S256
Token exchange:
curl -X POST 'https://issuer.example.com/oauth2/token' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d grant_type=authorization_code \
-d code=THE_CODE_FROM_THE_REDIRECT \
-d 'redirect_uri=https://app.example.com/callback' \
-d 'client_id=YOUR_CLIENT_ID' \
-d 'code_verifier=a4~tU-OVjL_NCBiwBL9h~YuB.EVrHrnA3tKCT.IfbjCkL~QeBul74MKTMTa9iuSB'
Generate PKCE parameters with S256/plain support, state, and nonce. Includes OAuth flow examples. Part of the DevTools Surf developer suite. Browse more tools in the Security / Crypto collection.