OAuth / OpenID Connect (OIDC) Demo
Introduction
OAuth is an industry-standard authorization framework that allows your application to access a user’s resources from a third-party service with the user’s permission and on the user’s behalf. The authorization requested (called scopes) determine which resources an application can access and what actions it can perform.
For example, your application could use OAuth to request permission to:
- read a user's calendar or files
- access a user's contacts or photos
- perform actions through an API, such as uploading a file to the user's drive
OpenID Connect (OIDC) extends OAuth by adding an identity layer that allows your application to authenticate users through a third-party identity provider. One benefit of using OIDC is a standard sign-in flow that defines both what information is requested and what identity data is returned.
Why Companies Offer OAuth and OIDC
Companies provide OAuth to let third-party apps securely access their data, APIs, and services, which expands integration and platform reach. They provide OpenID Connect (OIDC) to offer standardized sign-in that reduces password exposure and fraud risk, while also increasing brand visibility and keeping users within their ecosystem.
While OIDC is built on OAuth 2.0, companies may choose to offer OAuth authorization features, OIDC sign-in features, or both, depending on their platform goals.
Demo
This demo walks through an OAuth/OIDC sign-in flow using Google and displays the identity claims, tokens, and authorization metadata that would be returned to a production application.
To run, you need a Google account. If you don’t have one or prefer not to use your own account, you can alternatively view static sample data from an OAuth/OIDC sign-in flow.
Click the button on the right to sign in with Google. Your browser is redirected to Google, where you may be asked to authenticate and consent to the requested scopes and permissions. Google then redirects you back to this app, where you can view the returned identity claims and OAuth/OIDC data.
Protecting Your Privacy and Data
Your Google credentials are entered only on Google’s site and are never shared with this demo. The demo requests these scopes and permissions, and does not make any API calls on your behalf.How to Revoke Permissions When Done with the Demo