OpenID Connect Explained: How Sign In With Google Really Works

OpenID Connect explained in plain terms means a standard way for websites and apps to check who you are by asking a trusted provider, such as Google, to confirm your identity for them. The central question is what actually happens when you click Sign in with Google, and the short answer is that Google verifies you, then sends the app a signed statement confirming your identity, without ever sharing your password.

You have almost certainly used this without thinking about it. When a new app offers to sign you in with an account you already have, it is using OpenID Connect, or a close relative of it, to borrow the identity check from a provider you already trust, instead of asking you to create yet another password.

Understanding how it works matters because it explains both the convenience and the privacy trade-offs. You sign in faster and remember fewer passwords, but the provider learns which apps you use, and the app learns certain details about you, so it is worth knowing exactly what is shared.

Key takeaways

  • OpenID Connect is a standard that lets apps verify your identity through a trusted provider such as Google.
  • Your password stays with the provider and is never shared with the app you are signing in to.
  • The provider sends the app a signed identity token confirming who you are, plus only the details you agreed to share.
  • It is built on top of OAuth 2.0, which handles permission to access your data, while OpenID Connect handles identity.
  • You can review and revoke an app’s access from your provider account at any time.

What OpenID Connect is

OpenID Connect, often shortened to OIDC, is an identity layer that sits on top of the OAuth 2.0 authorisation framework. OAuth 2.0 on its own answers a different question: it lets an app access your data on another service, such as reading your calendar, with your permission. OpenID Connect adds the missing piece, which is proving who you are.

The standard was published by the OpenID Foundation, and it is used by Google, Microsoft, Apple, and many other large identity providers. When you see a sign-in button naming one of these providers, the app behind the button is almost always speaking OpenID Connect to that provider.

The key idea is delegation. The app does not need to store your password, check it, or even see it. It trusts the provider to do the checking, and it accepts the provider’s signed statement as proof. This is safer for everyone, because passwords live in one well-guarded place instead of being copied into every app you use.

How OpenID Connect works

The flow starts when you click the sign-in button. The app redirects your browser to the provider, such as Google, along with a note saying which app is asking and what information it would like. You then see the provider’s own sign-in page, which is why the web address changes to the provider’s domain.

You sign in to the provider in the usual way, with your password and any second factor you have set up. The provider then asks whether you agree to share specific details with the app, such as your name and email address. Nothing is shared until you approve it.

Once you approve, the provider sends your browser back to the app with a short-lived authorisation code. The app exchanges that code, directly and privately with the provider, for two tokens: an access token and an ID token. The ID token is a signed statement, in a format called a JSON Web Token, that names you and the provider and carries a digital signature the app can verify.

The app checks the signature, confirms the token was issued for it and has not expired, and then signs you in. From that point, the app knows who you are because the provider said so, and it never needed your password at any stage. Our guide to OAuth explains the authorisation framework underneath this flow, including how access tokens let apps act on your behalf with your permission.

A close-up photograph of hands typing on a laptop keyboard beside a phone showing a green checkmark on its screen
Hands typing on a laptop beside a phone showing a green checkmark capture the moment a sign-in is confirmed.

OpenID Connect compared with other sign-in methods

OpenID Connect is one of several ways to prove identity online, and each method suits a different situation. Passwords alone are simple but fragile, while enterprise systems often use a different protocol altogether.

The table below sets out the main contrasts.

Aspect Passwords alone OpenID Connect SAML
Who checks identity Each app checks its own passwords A trusted provider checks it An identity provider checks it
Password storage Copied into every app Kept only by the provider Kept only by the provider
Typical use Small sites and legacy systems Consumer apps and websites Workplace and enterprise systems
Second factor Added separately by each app Inherited from the provider Inherited from the provider
Setup effort Low, but risky at scale Moderate, using a standard flow Higher, with more configuration

Where OpenID Connect is used

Consumer apps are the most visible use. Shopping sites, news sites, fitness trackers, and productivity tools all offer sign in with a familiar provider, because it removes the friction of creating an account and remembering another password. For the app, it also means fewer password resets to support and fewer passwords to protect.

Workplaces use it too, often alongside the older enterprise protocol. Our guide to SAML explains that protocol, which many large organisations still rely on for single sign-on to internal systems, while newer cloud services in the same organisations often use OpenID Connect instead.

Developers use OpenID Connect to protect their own services as well. An application programming interface can accept ID tokens to confirm who is calling it, and a mobile app can sign users in through the provider without ever handling a password on the device itself.

Strengths and limits

The greatest strength of OpenID Connect is that it concentrates the risky work in one place. The provider is responsible for storing passwords safely, offering second-factor checks, and spotting suspicious sign-ins. An app that delegates to a good provider inherits all of that protection without building it.

The main limit is dependence. If the provider is unavailable, you cannot sign in to any app that relies on it, and if your provider account is compromised, the attacker may gain access to many apps at once. This is why protecting your provider account, with a strong password and a second factor, matters more than protecting any single app account.

Privacy is the other trade-off. The provider can see which apps you sign in to and when, and the app receives whatever details you agreed to share. Reading what an app asks for before you approve it, and reviewing connected apps in your provider account from time to time, keeps that sharing under your control.

OpenID Connect checklist

  • Turn on a second factor for your provider account, since it guards every app that uses it.
  • Read what an app asks to access before you approve a sign-in, and decline anything unnecessary.
  • Review the list of connected apps in your provider account every few months and remove ones you no longer use.
  • Revoke access immediately for any app you do not recognise in that list.
  • Use a different provider account for work and personal apps where your organisation allows it.
  • Check that the sign-in page address belongs to the provider before entering your password.
  • Sign out of shared devices, and use a private browser window when signing in on someone else’s computer.
  • Keep your recovery options for the provider account up to date, so you are never locked out.
  • Remember that deleting an app does not always revoke its access, so remove it from the provider list as well.

Frequently asked questions

What is OpenID Connect in simple terms?

OpenID Connect is a standard that lets a website or app ask a trusted provider, such as Google, to confirm who you are, so you can sign in without giving the app your password.

Is OpenID Connect the same as OAuth?

No, though they work together. OAuth 2.0 lets an app access your data on another service with your permission. OpenID Connect builds on OAuth 2.0 to add identity, proving who you are as well as what the app may access.

Does the app see my password when I sign in with Google?

No. You enter your password only on the provider’s own page, and the app receives a signed identity token instead. Your password is never sent to the app.

What information does an app get from OpenID Connect?

It gets an ID token confirming your identity, usually with your name and email address, plus only the extra details you agreed to share on the provider’s approval screen.

Can I stop an app from using my Google sign-in?

Yes. Your provider account has a list of connected apps, and removing an app there revokes its access. The app will no longer be able to sign you in through the provider until you approve it again.

Is sign in with Google safe?

It is generally safe when your provider account is well protected, because the provider handles passwords and second-factor checks. The main risks are a weak provider account and approving apps without checking what they ask to access.

The bottom line

OpenID Connect explained in one line is this: a trusted provider checks who you are and vouches for you, so apps can sign you in without ever handling your password.

The trade is clear. You gain convenience and stronger protection in one place, and you accept that the provider knows which apps you use, so keeping that account secure is the single most important step.

This article is general information about how OpenID Connect works, not advice about setting up sign-in or security for a particular website or organisation.

Latest articles

Scroll to Top