GRC Careers

HomeResourcesOpenID Connect

CS-069 · API Security

OpenID Connect

An identity layer on top of OAuth 2.0 that proves who the user is, not just what an app may access.

Executive Summary

OpenID Connect, or OIDC, is an identity layer built on top of OAuth 2.0 that lets an application confirm who a user is. Where OAuth grants delegated access, OIDC adds a signed ID token that carries verified identity claims from a trusted identity provider. It is the foundation of most modern sign-in and single sign-on, and its security depends on validating the ID token and the flow correctly.

What It Is

OpenID Connect extends OAuth 2.0 with a standard way to authenticate users and share basic profile information. OAuth alone answers what an application is allowed to do; OIDC answers who the user is. When a user signs in through an identity provider, the application, called the relying party, receives an ID token in addition to any OAuth access token. The ID token is a signed set of claims about the authentication event and the user, such as the subject identifier, the issuer, the audience, and the time the user authenticated. OIDC also defines a standard profile endpoint for additional user information and standard scopes such as one for basic profile data. Because it is built on OAuth, it reuses the same flows, most importantly the authorization code flow, while adding identity on top.

Why It Matters

OpenID Connect powers sign-in-with buttons and enterprise single sign-on across a huge portion of the web, so it decides how billions of logins are trusted. When implemented correctly, it lets organizations centralize authentication, apply strong controls like multi-factor authentication in one place, and stop every application from storing its own passwords. When implemented poorly, the consequences are severe: an application that fails to validate the ID token's signature, issuer, or audience can be tricked into accepting a token meant for another service or forged by an attacker, which leads to account takeover. For engineers and security professionals, OIDC is a high-value skill because it concentrates identity, which means a single validation flaw can compromise many users at once.

How It Works

OIDC uses the OAuth authorization code flow with an identity scope. The relying party redirects the user to the identity provider, where the user authenticates. The identity provider returns an authorization code, which the relying party exchanges for tokens, including a signed ID token. The relying party must then validate that ID token: verify the signature against the identity provider's published keys, confirm the issuer matches the expected provider, confirm the audience matches this application, check that the token has not expired, and verify the nonce that ties the token to the original request. Only after these checks does the application trust the identity. The identity provider publishes its configuration and signing keys at well-known endpoints so relying parties can discover and verify them automatically. Access tokens from the same flow are for authorization; the ID token is specifically for authentication and should not be used as an access token.

Architecture Diagram

Relying party redirects user to identity providerUser authenticates at the identity providerProvider returns a code, exchanged for an ID tokenRelying party validates signature, issuer, audience, and nonceApplication trusts the verified identity
The relying party redirects the user to the identity provider, then validates the returned ID token before trusting the login.

Visual Workflow

Register the relying party with the identity provider and its exact redirect URIs.Use the authorization code flow with an identity scope to request an ID token.Send and later verify a nonce that binds the token to the original request.Exchange the code for tokens over a secure back channel.Validate the ID token signature, issuer, audience, expiration, and nonce.Use the ID token only for identity, and treat access tokens separately for authorization.

Common Attacks

Common Mistakes

Best Practices

Quick Checklist

Recommended Tools

Identity provider
Authenticates users and issues signed ID tokens and access tokens
OIDC client library
Implements discovery, token exchange, and ID token validation correctly
Discovery and key endpoints
Publishes provider configuration and signing keys for automatic verification
Single sign-on platform
Centralizes federated login and session policy across applications

Industry Standards

OpenID Connect Core
Defines the identity layer, ID token, and validation rules on top of OAuth 2.0
OAuth 2.0 Authorization Framework (RFC 6749)
The authorization framework OIDC extends
JSON Web Token (RFC 7519)
The token format used for the ID token

Career Relevance

OpenID Connect is central for backend engineers, application security engineers, and identity-focused API security engineers who implement and secure login and single sign-on. Security engineers and penetration testers assess OIDC deployments for token validation flaws, and identity and AI governance professionals depend on OIDC concepts because verified identity is the foundation of access control across applications and AI systems.

Interview Questions

Related Certifications

OWASP-aligned application security training Identity and access management vendor certifications (vendor-neutral concepts) CompTIA Security+ (foundational)

Further Reading

Key Takeaways

Download PDFDownload PNG

FAQ

What is the difference between OpenID Connect and OAuth 2.0?

OAuth 2.0 handles authorization, meaning what an application may access. OpenID Connect adds an identity layer on top of OAuth so the application can also confirm who the user is, through a signed ID token.

What is an ID token and how is it different from an access token?

An ID token is a signed set of identity claims about the user and the login event, meant for the application to authenticate the user. An access token is meant for the resource server to authorize requests. Each should be used only for its intended purpose.

Why is the nonce important in OIDC?

The nonce is a unique value the application sends in the sign-in request and later checks in the returned ID token. It binds the token to that specific request and prevents an attacker from replaying a previously captured token.

Get all 116 reference sheets
The complete AGJ Cybersecurity Professional Reference Library, print-ready PDFs and PNGs.
Browse the library

Related Careers

Related certifications

OWASP-aligned application security trainingIdentity and access management vendor certifications (vendor-neutral concepts)CompTIA Security+ (foundational)

Current openings

Live openings appear on the web version. Browse the job board for current GRC and security roles.
Browse all jobs

Suggested learning path

  1. Ground the basics with CS-001 Cybersecurity
  2. Study this sheet: OpenID Connect
  3. Go deeper: OAuth 2.0
  4. Go deeper: JSON Web Tokens (JWT)
  5. Validate it: work toward OWASP-aligned application security training
  6. Find the role: browse current openings

Related sheets

More in API Security

Share this LinkedIn Facebook X Email