Development
Simulate the Authorization Code flow with PKCE end to end: verifier/challenge generation, authorization URL, token exchange, ID Token validation checklist and an interception-attack demo.
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/oauth-oidc-authorization-code-pkce-flow-visualizer' \
-H 'Content-Type: application/json' \
-d '{"flowVariant":"s256","codeVerifier":"dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk","issuer":"http://127.0.0.1:8443","clientId":"spa-demo-client","redirectUri":"http://127.0.0.1:8080/callback","scope":"openid profile email","clientSecret":"demo-secret-not-for-production","state":"","nonce":"","simulateAttack":false}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/oauth-oidc-authorization-code-pkce-flow-visualizer| Name | Type | Required | Description |
|---|---|---|---|
| flowVariant | select | Yes | — |
| codeVerifier | text | No | — |
| issuer | text | No | — |
| clientId | text | No | — |
| redirectUri | text | No | — |
| scope |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-oauth-oidc-authorization-code-pkce-flow-visualizer": {
"name": "oauth-oidc-authorization-code-pkce-flow-visualizer",
"description": "Simulate the Authorization Code flow with PKCE end to end: verifier/challenge generation, authorization URL, token exchange, ID Token validation checklist and an interception-attack demo.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=oauth-oidc-authorization-code-pkce-flow-visualizer",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "oauth-oidc-authorization-code-pkce-flow-visualizer",
"arguments": {
"flowVariant": "s256",
"codeVerifier": "dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk",
"issuer": "http://127.0.0.1:8443",
"clientId": "spa-demo-client",
"redirectUri": "http://127.0.0.1:8080/callback",
"scope": "openid profile email",
"clientSecret": "demo-secret-not-for-production",
"state": "",
"nonce": "",
"simulateAttack": false
}
}
}| text |
| No |
| — |
| clientSecret | text | No | — |
| state | text | No | — |
| nonce | text | No | — |
| simulateAttack | checkbox | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]