Reading an OpenID Connect Discovery Document Like a Security Reviewer
What the openid-configuration file reveals about an identity provider, which members matter for security, and how to turn it into a safe client setup.

One small file, many decisions
When you connect an application to an OpenID Connect provider, the first thing your library does is download a JSON file from the issuer's /.well-known/openid-configuration address. That file is the provider's self-description. It names the authorization and token endpoints, the location of the signing keys, the response types and grant types it accepts, the algorithms it signs ID tokens with and the ways clients can authenticate. Most developers glance at it once to copy an URL. Security reviewers read it carefully, because nearly every risky option an identity server can offer is visible there.
What deserves attention
Start with the issuer. It must be an https URL without a query string or fragment, and your client has to compare it exactly with the iss claim in every ID token. A missing trailing slash on one side is a common reason for confusing login failures, and skipping the comparison opens the door to tokens from the wrong provider.
Next, look at response types. The value code means the authorization code flow, which is what current OAuth guidance recommends for every kind of client. Values such as token or id_token token mean the provider can return tokens directly in the browser address bar. That implicit style was popular for single-page apps years ago, but tokens in URLs leak into history, logs and extensions. RFC 9700, the OAuth 2.0 Security Best Current Practice published in 2025, tells clients not to use it. Grant types deserve the same scrutiny: a password grant lets apps collect user passwords directly, which the same document forbids.
Then check PKCE. The code_challenge_methods_supported member should include S256. If it is missing, clients cannot tell whether PKCE works at all; if it lists only plain, the protection is weak because the challenge equals the secret.
Signing algorithms come after that. The list must never include none for ID tokens, and the discovery specification says RS256 must be offered for compatibility. Modern choices such as PS256, ES256 and EdDSA are a good sign. HMAC algorithms can only be verified by clients that know the shared secret.
The stronger features
A mature provider also advertises extras that close specific attack classes. The iss parameter in authorization responses (RFC 9207) lets a client that talks to several providers notice when a response comes from the wrong one. Pushed authorization requests (RFC 9126) move the sign-in parameters from the browser to a back-channel call. DPoP and mutual TLS bind access tokens to a key held by the client, so a copied token is useless on its own. Private key JWT client authentication removes long-lived shared secrets. Open banking and similar regulated APIs require most of these under the FAPI 2.0 profile.
Using the analyzer
The OIDC Discovery Document Analyzer does this review in seconds. Type the issuer and press Fetch, or paste the JSON if the provider blocks cross-origin requests. Enter the issuer your client expects so the exact match is tested, and choose between best-practice and FAPI 2.0 rules. The result is a score and grade with errors and warnings first, each with a short fix. The endpoints tab lays out every URL and capability list in a readable table, with risky values marked.
The client setup tab is where the review becomes practical. Choose single-page app, server-side web app, native app or service-to-service, and the tool writes a numbered checklist using the provider's real endpoints: exact redirect URIs, response_type code with an S256 challenge, state and nonce, the right client authentication, every ID token check, logout and token revocation. A JSON skeleton gives you the values to copy into your configuration.
The compare tab is useful later. Paste last month's copy or the staging provider's document and see every member that differs. Providers change these files during upgrades, and a quietly re-enabled implicit flow is easy to miss.
Keeping it in perspective
A discovery document is an advertisement, not proof. A server can list S256 yet still accept requests without PKCE, or list a feature that is disabled for your client. Treat the analyzer's grade as a map of where to look, then test the real behaviour of your client and server. And remember that the document says nothing about the keys at jwks_uri; check those separately when you rotate keys.



