About

Tool No. 74 of Pikkola, 26 November 2026

An OAuth login is a conversation between three parties that never meet in one place: your app, the provider, and the person signing in. The parts you can see are a redirect and a short code. The parts that decide whether the login is safe are a hash, a receipt and a lifetime, and those are the parts this page puts in front of you.

What it does

The pair

A verifier is a random string from the unreserved character set of RFC 3986. This page draws bytes from the platform's cryptographic generator, throws away the bytes that would bias the last character of the alphabet, and fills the requested length. The challenge is the SHA-256 digest of the verifier in base64url without padding, which is 43 characters, and that is what goes into the URL. The verifier itself is meant for the token request and nowhere else.

The check box works in the other direction: give it a verifier and a challenge and it says whether one produced the other. It is the same function the benches use, so a pair accepted here is a pair the flow will accept. The RFC 7636 example is one click away, which is a useful way to see that the tool and the specification agree.

The URL

Seven providers, each with the endpoints and the parameter set it documents. Google, Kakao, Microsoft and a generic OpenID provider take a challenge and a nonce. GitHub takes a challenge and no nonce, because it is not an OpenID provider. Apple answers by form post and its client secret is a signed JWT. Naver documents neither PKCE nor an OpenID scope, and requires state. The builder follows the provider rather than a single ideal request, and says so when the provider's answer differs from the ideal.

Warnings are graded. An error is something a provider will reject or a browser will break: a fragment in the redirect URI, plain http outside loopback, an implicit response type, a verifier in the URL. A warning is something that works today and fails later: a short state, a placeholder client id, duplicated parameters. A note is information: Apple's form post was added for you, a loopback redirect is allowed for a desktop client.

The answer

A callback is read before the code is used, not after. The page separates the query from the fragment, because a token in the fragment means the implicit flow, and lists duplicate names, because two code parameters mean two possible codes. An error is reported with its standard meaning. The state is compared only when you paste the value you kept, and the page says plainly when it was not compared at all.

An ID token is decoded, not verified. Every claim is listed with the time it refers to in plain language, and the checks that catch the usual mistakes run against the values you provide. The signature check is missing on purpose: it needs the provider's keys and a verified crypto library on a server, and pretending to do it here would be worse than saying that it was not done.

The exchange

The token request is printed as three snippets with the same fields: grant_type, code, redirect_uri, code_verifier and the client identity. A public client sends no secret. A confidential client sends one, either in the body or through basic authentication, and the page keeps the secret a placeholder because it belongs in the server's environment and not in a page that writes snippets.

What it is not

It is not an OAuth library and it does not talk to a provider. It does not fetch discovery documents, does not open the authorize URL, does not exchange a code, and does not keep a token. It cannot tell you whether your provider will accept a redirect URI until that provider says so. It reads the values the way a careful reviewer reads them, and it names the thing it could not check.

Contact

Corrections to a provider's parameters are welcome, especially with a link to the documentation: hello@pikkola.com.

Back to the studio