Search⌘ K
AI Features

Get OAuth Credentials for a Web Application

Explore the process of creating OAuth 2.0 credentials for web applications, including setting up a client ID, and integrating Google sign-in with Python. Learn to generate and revoke access tokens and retrieve user profile information through a simple Django demo app.

This lesson covers how to create your OAuth 2.0 client for a web application. This provides you with the OAuth credentials that enable you to generate the access token.

Create the OAuth 2.0 client

Step 1: From the left menu bar, click the "Credentials" option.

Step 2: On the "Credentials" page, click "CREATE CREDENTIALS" from the top menu bar. Select the "OAuth client ID" option from the dropdown menu. This time, you're redirected to the "Create OAuth client ID" page where you're asked to enter the following information.

  • Application type: Select the "Web application" option from the dropdown menu.
  • Name: This is the name of your OAuth 2.0 client. This name is only be used to identify the client in the console and isn’t shown to the end users.
  • Authorized JavaScript
...