OpenID Connect

OpenID Connect is a single-sign-on standard, also known as: OIDC.

The OpenID Connect documentation is managed by OpenID Foundation, and was last updated in 2023.

Whilst OAuth 2.0 is about granting permission to access resources, OpenID Connect (OIDC) is about verifying a user’s identity.

OpenID Connect is an identity layer built on top of the OAuth 2.0 framework. It uses OAuth 2.0’s features to solve the problem of user authentication. It answers the question: “Who is this user?”

In practice, a modern “Sign in with Microsoft” button uses both. OAuth 2.0 handles the permissions (e.g., to access your name and email), while OIDC handles the authentication (confirming that you are indeed the user you claim to be).

Strengths

  • OIDC enables users to sign-in to multiple services without needing to create and remember a new username and password
  • It provides a robust and standardised way to verify a user's identity
  • The ID token can include basic user information without needing additional API calls to collect them

Limitations

  • It must be used alongside Oauth 2.0 to ensure users are **authorized** as well as **authenticated**
  • It can be complex to implement. A single error could compromise the entire system
  • It relies on a chain of trust. If part of that chain is compromised, the whole system could be at risk
More information on the OpenID Connect standard