Short answer
OpenID Connect is an identity layer on top of OAuth 2.0 that lets a client verify who signed in and read basic profile claims from an ID token. The OpenID Connect Core 1.0 specification defines that token as a signed JSON Web Token. OAuth 2.0, in RFC 6749, is about limited access to an HTTP service. SAML is a different sign-in protocol, which Microsoft documents beside OpenID Connect rather than as the same thing.
Last verified against the sources listed below.
Key takeaways
- OpenID Connect Core 1.0 calls the protocol a simple identity layer on OAuth 2.0.
- Clients request it by sending the openid scope. The response can include an ID token.
- The ID token is a JWT. iss, sub, aud, exp, and iat are required claims in the spec.
- RFC 6749 defines OAuth 2.0 as limited access, not as a proof of who the user is.
- Microsoft's SSO guide lists OpenID Connect and SAML as separate protocol choices.
- Google's sign-in docs say to obtain an ID token and validate it. The APIs are OpenID Certified.
What is OpenID Connect, in the Core 1.0 specification, is a simple identity layer on top of the OAuth 2.0 protocol. It lets a client verify the end user from an authentication the authorization server already performed, and it lets the client obtain basic profile information in a REST-like way.
The Core specification says the client asks for that layer by sending the scope value openid. The server returns the result of the authentication in a JSON Web Token called an ID token.
How does OpenID Connect work?
The browser, or another client, sends the user to the authorization server. The request includes the openid scope. It also includes the client identifier and a redirect address the server already knows.
If the request includes a nonce, the server copies that value into the ID token. The client later checks that the nonce matches. The spec says this ties the token to the client session and limits replay. The server is told not to do extra processing on the nonce.
The ID token is three base64url segments separated by periods. The first is the header, including the signing algorithm. The second is the claims. The third is the signature, and a client that skips that check has not followed the spec.
RFC 6749 is the OAuth 2.0 framework underneath. Its abstract says a third-party application obtains limited access to an HTTP service, either for a resource owner or on its own behalf. That sentence is about access. It is not a sentence about identity.
Why does the ID token matter?
The ID token is the proof that an authentication happened. Core 1.0 requires five claims in that token for the flows it defines.
iss is the issuer identifier, a case-sensitive https URL with no query and no fragment. sub is the subject, locally unique inside that issuer, never reassigned, and no longer than 255 ASCII characters. aud is the audience and must include the client’s client_id.
exp is the expiration, and the relying party must not accept the token at or after that time. iat is the issued-at time.
auth_time is required only in some cases, including when the client sent max_age. The spec notes that the ID token’s expiration is not the same thing as the session between the relying party and the provider.
Auth0’s protocol page draws the same line in product language. OAuth 2.0 is about resource access and sharing. OpenID Connect is about user authentication. A successful login returns information in a JWT, and the client receives an access token and, if requested, an ID token.
How is OpenID Connect different from OAuth and SAML?
OAuth answers a different question. The client wants limited access to an API. OpenID Connect answers who the person is. SAML answers a sign-in question too, with a different message format, and Microsoft treats it as another menu choice.
| Question | OAuth 2.0, per RFC 6749 | OpenID Connect, per Core 1.0 | SAML, per Microsoft’s SSO guide |
|---|---|---|---|
| Job | Limited access to an HTTP service | Verify the end user and obtain basic profile claims | Sign in existing apps that do not use OpenID Connect or OAuth |
| What the client holds | An access grant, often an access token | An ID token, which is a signed JWT | A SAML assertion from the identity provider |
| How you ask | An authorization request | The same family of requests, plus the openid scope | The app’s SAML configuration |
| A required check | The grant is scoped to a resource | iss, aud, exp, and nonce when a nonce was sent | A certificate Microsoft says lasts three years by default |
Microsoft’s SSO deployment guide says to choose OpenID Connect and OAuth 2.0 when the app supports them, and to choose SAML when it does not. Password-based SSO is a third method on that page. It stores a password. It is not an ID token and it is not a SAML assertion.
That split is part of website security. A login protocol does not, by itself, decide who may administer the directory.
What does a Google login show?
Google’s OpenID Connect document says its OAuth 2.0 APIs can authenticate and authorize, that the authentication implementation conforms to OpenID Connect, and that it is OpenID Certified.
Authenticating the user means obtaining an ID token and validating it. Google names a server flow, where the application’s backend checks the person using the browser, and an implicit flow for a client-side app. The page says the implicit flow is harder because tokens sit in the browser, and it points that case to Google Identity Services.
For a website button, the same page says to use Google Identity Services, a library built on OpenID Connect that provides ID tokens in that format. Android apps are pointed to Credential Manager. Before any of that, you create OAuth credentials, set a redirect URI, and can customize the consent screen. Scopes on that request decide what the consent screen asks the user to release.
The page also says you can call a userinfo endpoint with an access token for more profile data. That call is extra profile data. It does not replace validation of the ID token.
A scope string is short, and a typo still breaks the request. A word counter is a blunt way to see the length of a scope list before you paste it into a client.
What mistakes break the check?
Do not treat the access token as the identity. Auth0 and the RFC split the jobs. Google’s own page still tells you to validate the ID token.
Do not skip aud. The spec says the audience must contain the client_id of the relying party. A token minted for a different client is not a login for yours, even if the signature is valid.
Do not ignore exp. The relying party must not accept the token at or after that time. The spec allows a small leeway for clock skew, usually no more than a few minutes. It does not allow an open-ended token.
Do not drop the nonce if you sent one. The client must verify that the claim equals the value it sent. The authorization server must include it when the request had it.
Do not confuse the protocol with a second factor. Two-factor authentication and SSO sit beside this login. An ID token can say an authentication happened. It does not, by the Core definition, replace a product decision about a second factor.
Do not write the HTTP calls from memory if a maintained library exists. Google’s guide says a bad implementation has security consequences and recommends a library. The claims you still verify are the ones the spec marks as required.
Frequently asked questions
What is the openid scope for?
The Core specification says authentication is requested by including the openid scope value in the authorization request. Without that scope, the request is an OAuth authorization request and the client should not expect an ID token. The scope is a short string, but it changes the job of the response. Add it when the app needs to know who signed in. Leave it off when the app only needs an access token for an API.
Which ID token claims are required?
Core 1.0 requires iss, sub, aud, exp, and iat for the ID token. iss is the issuer URL. sub is a subject identifier that must not exceed 255 ASCII characters and must not be reassigned inside that issuer. aud must contain the client's client_id. exp is the time after which the relying party must not accept the token. iat is when the token was issued. If the request sent a nonce, the token must carry that same nonce.
How is OpenID Connect different from SAML?
Both can sign a user into an app, and they are not the same message. OpenID Connect returns a JSON Web Token on top of OAuth 2.0. SAML is the XML federation choice Microsoft tells you to use for existing apps that do not speak OpenID Connect or OAuth. Duo's SSO doc calls its product both a SAML 2.0 identity provider and an OpenID Connect provider, which is one product with two protocols. Pick the protocol the app already implements.
Can I skip a library and call the endpoints myself?
Google's OpenID Connect guide says you can follow the HTTP flow, and it also says the security cost of a mistake is high. It points website buttons to Google Identity Services, which returns an OpenID Connect ID token, and it points Android apps to Credential Manager. Auth0's protocol page says you can configure an application from the discovery document. A library does not remove the need to check iss, aud, exp, and nonce. It removes the chance that you invent those checks.
Does an access token prove who the user is?
Not by the split these documents draw. RFC 6749 describes an access grant to an HTTP service. Auth0 says OAuth 2.0 is about resource access, and OpenID Connect is about authentication. Google says you can call the userinfo endpoint with an access token for more profile data, after you have authenticated with an ID token. Treat the ID token as the sign-in proof. Treat the access token as the key for an API. Using one as the other is the common mix-up.
Sources
- OpenID Connect Core 1.0 · OpenID Foundation, 2023
- RFC 6749, The OAuth 2.0 Authorization Framework · IETF, 2012
- OpenID Connect Protocol · Auth0, 2026
- OpenID Connect, Sign in with Google · Google, 2026
- Plan a single sign-on deployment · Microsoft Learn, 2026