OIDC (OpenID Connect) solves the "authentication" problem that OAuth 2.0 does not address. OAuth 2.0 focuses only on "Is this app allowed to access my data?" (authorization), but does not deal with "Who is this user?" (authentication). OIDC adds a JWT called the ID Token to the OAuth 2.0 flow to deliver the user's identity to the client. For example, when you click "Sign in with Google," OIDC operates and tells the app your email and name.
OIDC has three core components. The ID Token is a JWT containing the user's identity, including claims such as the issuer (iss), audience (aud), subject (sub), and expiration time (exp). The UserInfo endpoint is where you access additional user information (profile photo, phone number, etc.) using the Access Token. The Discovery Document (.well-known/openid-configuration) automatically tells the client all of the IdP's endpoints and supported features, simplifying client configuration. Thanks to this developer-friendly design, those with OAuth 2.0 experience can adopt OIDC easily.
The OIDC authentication flow is chosen according to the application type. Authorization Code Flow (+ PKCE) is the standard for web apps and mobile apps, and is the safest method, exchanging a code for tokens. Implicit Flow is no longer recommended, as it carries the risk of tokens being exposed in the browser. Hybrid Flow receives some tokens through the front channel and the rest through the back channel, providing flexibility. As of 2025, PKCE is mandatory for all public clients (SPAs, mobile apps).
OIDC has also brought innovation to CI/CD pipelines. GitHub Actions uses OIDC to authenticate to AWS, GCP, and Azure without passwords. When a workflow runs, GitHub issues a JWT, and the cloud provider verifies the claims in this token (repository, branch, environment) to grant permissions. This eliminates the risk of storing long-lived credentials in code and automates the principle of least privilege. Across modern infrastructure, including Kubernetes and HashiCorp Vault, OIDC-based workload identity is becoming the standard.