# OpenID Connect (OIDC)

> A login layer on top of OAuth 2.0. It tells an app who the user is.

**Field:** Software Development  
**Category:** Auth  
**Also known as:** OIDC, OpenID, ID Token

## Think of it like

Think of it like a passport stamp added to a visa. The visa lets you in; the stamp says who you are.

## Definition

OpenID Connect is a layer on top of OAuth 2.0 that adds logging in. OAuth on its own only grants access to data. OpenID Connect also hands the app an ID token, a JWT that says who the user is. Sign in with Google and Sign in with Microsoft both use it. It was finished in 2014.

## Example

Emma clicks Sign in with Google on a new app. Google sends back an ID token with her name and email, and the app logs her in.

## Why it matters

Apps can offer a login people trust. They never have to store a password.

## Common mistake

Taking an ID token without checking its signature and who it is for. A token meant for another app must be turned away.

## Three principles

- **Built on OAuth 2.0.** Adds who you are.
- **An ID token.** A signed JWT.
- **Behind Sign in with.** Google, Microsoft, Apple.

## Related terms

- [OAuth 2.0](https://learn.benibix.com/term/development/oauth)
- [Single Sign-On (SSO)](https://learn.benibix.com/term/development/single-sign-on)
- [JSON Web Token (JWT)](https://learn.benibix.com/term/development/json-web-token)
- [Authentication](https://learn.benibix.com/term/development/authentication)
- [Security Assertion Markup Language (SAML)](https://learn.benibix.com/term/development/saml)

## Told apart from

- [OAuth vs OpenID Connect](https://learn.benibix.com/compare/oauth-vs-openid-connect): OAuth 2.0 lets an app act for you without ever seeing your password, and OpenID Connect tells the app who you are. OAuth hands out access tokens, which say what an app may do. OpenID Connect sits on top of OAuth. It adds an ID token, which says who logged in. Use OpenID Connect to log people in, and OAuth for access.
- [SAML vs OpenID Connect](https://learn.benibix.com/compare/saml-vs-openid-connect): People think SAML and OpenID Connect do different jobs, and they do the same one. Both let one login open many apps. SAML is older and sends a signed XML note through the browser. OpenID Connect is newer, sends a signed JSON token, and suits phone apps and APIs. Most work apps take both.

---

Source: https://learn.benibix.com/term/development/openid-connect
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
