Skip to content
BENIBIX Learn

OpenID Connect (OIDC)

Development🔑 AuthSingle Sign-On

Also known as OIDC, OpenID, ID Token

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

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.

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.

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.

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.

Key takeaways

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

Compare