OpenID Connect (OIDC)
An identity layer on top of OAuth 2.0 that lets an app learn who signed in, through an ID token from Google, Microsoft, Okta or another provider.
OAuth was built to grant access to an API, not to tell an app who the user is. OpenID Connect Core 1.0, final since February 2014 with errata set 2 from December 2023, adds that missing piece: after login the provider returns an ID token, a signed JWT stating who the user is, which provider vouched for them and when they authenticated.
It is the usual protocol behind “Sign in with Google” and behind modern SSO with Microsoft Entra ID, Google Workspace or Okta. Compared with SAML, it uses JSON instead of XML and works well with single-page and mobile apps. The risky parts are in the details: validating the token’s signature, issuer and audience, and using the authorization code flow with PKCE instead of older flows.
Sources
- OpenID Foundation: OpenID Connect Core 1.0 openid.net
Related terms
- OAuth: A standard that lets an app act on a user’s account elsewhere (mail, calendar, files) without ever seeing the password.
- SAML (Security Assertion Markup Language): An XML standard for enterprise single sign-on: the company’s identity provider sends a signed assertion telling the app who the user is.
- SSO (single sign-on): Logging in once with a company account (Microsoft, Google, Okta) to use many apps, managed centrally by IT.
- JWT (JSON Web Token): A signed, compact token that carries claims about a user, such as who they are and when the token expires.
- Microsoft Entra ID (formerly Azure AD): Microsoft’s cloud identity service behind Microsoft 365 logins, renamed from Azure Active Directory in 2023.
- Authentication vs authorization (authn vs authz): Authentication proves who you are; authorization decides what you may do. Most access bugs live in the second, after a perfectly good login.
