DEVELOPER TOOL

OAuth 2.0 / PKCE Builder & Debugger

Generate S256 PKCE, build and inspect authorization URLs, and create token request examples locally.

Runs locallyRuns locally in your browser. Your data is not uploaded.

Local analysis only. No login, token exchange or network requests. Inputs are cleared on reset or page exit.

OAuth / PKCE workspace

PKCE

Method: S256. Verifiers use 43–128 unreserved ASCII characters.

Ready.

Build OAuth requests without executing OAuth

This local-only debugger performs no login or token exchange. It never contacts authorization servers, fetches discovery metadata or JWKS, follows redirects, or validates live clients. Inputs remain in browser memory and are cleared on reset or page exit. Copying moves data to your system clipboard, outside this tool.

Generate and verify S256 PKCE

Generate a fresh verifier for each transaction. Native Web Crypto generates 32 random bytes, encoded as 43 unpadded Base64URL characters. The S256 challenge is BASE64URL(SHA256(ASCII(code_verifier))). Pasted verifiers must contain 43–128 unreserved ASCII characters. The verifier is masked; reveal or copy it explicitly. The RFC sample is public test data, never a production secret.

Authorization Code URLs and state

Generate PKCE, enter the endpoint, client ID and exact registered redirect URI, then build the URL. response_type is always code and the PKCE method is S256. Scopes are separated by spaces. Extra parameters use one literal name=value per line; do not pre-encode values. Copy the URL or inspect it without navigating.

State helps bind the authorization response to the browser/client transaction and protects against request-forgery and mix-up style attacks when validated correctly. Generating state alone does not secure a flow. Validate the response against the original transaction, including issuer and redirect bindings. Other correctly implemented protocol defenses may provide CSRF protection.

Interpret diagnostics carefully

The inspector labels errors, warnings, recommendations and information in text. It detects missing PKCE/state, plain PKCE, implicit responses, duplicate parameters, known secret/token fields, fragments and insecure HTTP. Localhost HTTP is a development exception. Custom native-app redirect schemes need separate registration and interception checks. Registration, endpoint availability and provider policy cannot be established locally.

Known sensitive parameters and possible plain verifiers are redacted in the decoded table. Arbitrary provider parameters may still contain sensitive data; do not paste secrets under unrelated names. Raw pasted URLs are masked by default.

Token request examples

Public clients require no secret. Examples always include grant_type=authorization_code and the original PKCE verifier via environment variables. Supplied codes and verifiers are validated but replaced by OAUTH_CODE and OAUTH_CODE_VERIFIER placeholders. JavaScript examples target Node.js fetch; this page never executes them. Confidential Basic and client_secret_post modes are conceptual server examples, with no client-secret input.

Confidential client secrets should normally be handled on a trusted server, not shipped in browser code. For Basic authentication, form-encode client ID and secret individually, join with a colon, then Base64 encode. Supply that result as OAUTH_BASIC_AUTH for cURL.

Limits and MCP relevance

Fields are limited to 2 KiB, pasted authorization URLs and extra parameters to 16 KiB, and parsed URLs to 100 query parameters. No callback comparison is included. Modern remote MCP authorization builds on OAuth/OIDC practices: PKCE, state, issuer and resource binding matter. This is not an MCP OAuth client and adds no remote connectivity.

Standards: RFC 7636: PKCE, RFC 9700: OAuth Security BCP, and RFC 6749 client authentication.

Find a tool or category

Tools & categories12 results