OIDC discovery metadata maps an identity service without proving its policy
OpenID Connect relies on a discovery document to tell clients where to find authorization, token, user-info, and JWK endpoints. The document is public by design. That makes it useful for service discovery and dangerous to misread as a trust guarantee.
RFC 8414 defines OAuth authorization-server metadata. OpenID Connect Discovery defines the openid-configuration document and its issuer, endpoint, response-type, subject-type, and signing-algorithm fields. Clients use those values to configure authentication. Defenders can use them to identify identity services, but they still need to verify issuer ownership, TLS, redirect URIs, and registration policy.
ZoomEye measurement
On November 25, 2026, the exact dork http.body="openid-configuration" was executed with sub_type=all, page 1, and page size 1. It returned 752,641 indexed HTTP-body matches. The literal string can appear in a discovery response, an OAuth client configuration, a library default, a documentation page, or an error message. The count is not an OpenID provider count.
An identity service may publish metadata while restricting registration, requiring client authentication, limiting scopes, and enforcing issuer checks. Another service may publish the same fields but accept an unverified redirect URI. The public document cannot distinguish those policies. A review has to test registration and authorization behavior in an authorized deployment.
Read the document as a contract
Confirm that the issuer value matches the HTTPS origin and the expected tenant. Compare authorization_endpoint, token_endpoint, userinfo_endpoint, and jwks_uri to the organization's service inventory. A discovery document that names endpoints on another domain may be intentional federation, a proxy, or a misconfiguration. Follow the redirect chain and validate the TLS certificate for each host.
Review supported response types, grant types, scopes, code-challenge methods, subject types, and signing algorithms. Reject none when a real authentication flow requires a signature. Disable password or implicit grants unless a documented application requires them. Check whether dynamic client registration is enabled and who can create a client.
The document is often cached and replicated. After a change, fetch it from multiple regions and compare hashes. A stale metadata cache can keep a retired endpoint alive or hide a new signing key. Record the fetch time, URL, issuer, and hash.
Test the trust decisions
Register a test client in a controlled environment. Verify redirect-URI matching, PKCE enforcement, state and nonce handling, token audience, issuer validation, and logout behavior. Test a client from one tenant against another tenant only in the lab. The goal is to find whether the provider trusts metadata that a client can influence.
Review the identity provider's audit log for client creation, secret rotation, redirect changes, consent grants, and token issuance. Correlate with the resource server's token validation logs. A valid signature is not enough if the token has the wrong audience or issuer.
Make discovery useful to defenders
Use the document to seed an identity inventory. Map each issuer to an application owner, tenant, registration process, and key-rotation process. Remove retired issuers and orphaned client registrations. Monitor the document for unexpected endpoint or algorithm changes.
The 752,641 body matches should be treated as a vocabulary search. They show where the discovery term appears in indexed HTTP content, not where an identity service is open to registration. The security decision depends on the client-registration policy and token validation that sit behind the public metadata.
References
- IETF, RFC 8414, "OAuth 2.0 Authorization Server Metadata." https://www.rfc-editor.org/info/rfc8414/
- OpenID Foundation, "OpenID Connect Discovery 1.0 incorporating errata set 2." https://openid.net/specs/openid-connect-discovery-1_0-errata2.html
- OAuth.net, "Authorization Server Metadata." https://oauth.net/2/authorization-server-metadata/
- ZoomEye query, executed November 25, 2026: https://www.zoomeye.ai/searchResult?q=aHR0cC5ib2R5PSJvcGVuaWQtY29uZmlndXJhdGlvbiI%3D
Top comments (0)