Homeglossary

OpenID Connect

OpenID Connect is an identity protocol that lets an application verify who a user is after they sign in. It builds on OAuth 2.0, which governs delegated access to APIs, by adding standardized authentication and an ID token. It supports secure single sign-on across web and mobile applications.

Build secure sign-in flows with Emergent.

What is OpenID Connect?

OpenID Connect, or OIDC, is an identity protocol that lets an application verify who a user is after sign-in. Built on OAuth 2.0, it supports secure single sign-on for web and mobile apps.

How OpenID Connect works

Most apps use Authorization Code with PKCE.

  1. The relying party, or app, redirects the user to an OpenID Provider.
  2. The provider authenticates the user and returns a short-lived code.
  3. The app exchanges the code for tokens.
  4. The app validates the signed ID token, including its issuer, audience, expiry, nonce, and claims. Discovery metadata publishes the provider’s endpoints and keys.

OpenID Connect vs OAuth 2.0

OAuth grants access. OIDC establishes identity.

OpenID ConnectOAuth 2.0
AuthenticationAuthorization
ID token for the appAccess token for an API

An access token alone is not proof of a user’s identity because its intended audience may be an API, not the app.

Benefits of OpenID Connect

OIDC creates a consistent sign-in experience.

  • Supports single sign-on and fewer passwords.
  • Uses portable profile claims and common web and mobile patterns.

Practical limits and security requirements

Correct configuration matters as much as the protocol.

  • Allowlist exact redirect URIs, use PKCE, and verify state and nonce.
  • Validate token signatures and claims, use short lifetimes, and never use an ID token to call an API.

OpenID Connect and SAML

Both enable federated sign-in, but they suit different environments.

OIDCSAML
JSON and JWT-basedXML-based assertions
Usually preferred for modern mobile and API-connected appsOften retained for established enterprise integrations

Using OpenID Connect in an Emergent app

When building an app with Emergent, configure provider callback URLs and secrets outside source code, then test authenticated journeys. See Connect Your Tools and app design and development for related guidance.

Start Building
on Emergent today
Start Building