OpenID Connect Discovery
OpenID Connect Discovery is a mechanism that lets an application find out where a user's identity provider is and how to communicate with it, without that information being configured by hand in advance. Instead of manually entering connection details, the application can retrieve them automatically from a standard location published by the identity provider. This makes it easier to set up sign-in flows across different providers.
OpenID Connect Discovery 1.0 (OpenID Foundation specification, most recently published as errata set 2 in December 2023) defines a mechanism by which an OpenID Connect Relying Party can discover the End-User's OpenID Provider and obtain the metadata needed to interact with it. OpenID Connect itself is an identity (authentication) layer built on top of the OAuth 2.0 authorization framework, enabling clients to verify the identity of the End-User; Discovery supports this by providing the provider configuration needed before authentication flows begin. In typical deployments, provider metadata is published at a well-known endpoint (commonly referenced as the .well-known endpoint), from which clients dynamically retrieve OpenID Provider information such as endpoint locations and supported capabilities. Note that Discovery addresses locating and describing the provider; the actual authentication of the End-User, token issuance, and token validation are handled by other parts of the OpenID Connect and OAuth 2.0 specifications and are out of scope for the Discovery specification itself. Exact metadata fields and behavior depend on the provider's configuration and conformance to the specification.
Why it matters
OpenID Connect Discovery reduces the manual configuration burden of integrating with identity providers. Without it, a Relying Party developer must obtain and hand-enter connection details such as endpoint locations and supported capabilities for each OpenID Provider. This manual approach is error-prone and brittle: when a provider rotates signing keys or changes an endpoint, statically configured clients can break unless they are updated in step. Discovery allows a client to retrieve current provider metadata from a standard, well-known location instead, which simplifies onboarding across multiple providers and helps clients stay aligned with provider configuration changes over time.
For organizations operating at scale, Discovery is a practical enabler of federation flexibility. Because provider metadata is published in a predictable, standardized structure, it becomes feasible to support many identity providers, or to switch providers, with less bespoke integration code. It also supports interoperability efforts: ecosystem programs, such as those in open banking, reference the OIDC Discovery well-known endpoint as the defined place to describe a provider's configuration, which gives participants a common contract to build against.
It is important to scope expectations correctly. Discovery is concerned with locating and describing the provider, not with authenticating the end user or issuing and validating tokens, those responsibilities belong to other parts of the OpenID Connect and OAuth 2.0 specifications. Treating Discovery as a security boundary in itself would be a mistake; the metadata it returns is only as trustworthy as the transport and the provider publishing it, and the actual assurance of a sign-in comes from the authentication flow and token validation that follow. Because exact metadata fields and behavior depend on the provider's configuration and conformance, integrators should not assume that every capability advertised or expected is uniformly implemented across providers.
Who it's relevant to
Inside OIDC Discovery
Common questions
Answers to the questions practitioners most commonly ask about OIDC Discovery.
