google-logo

Create Token

Generate your Google API token in one-click.

How to

How to get Google Client ID and Client Secret and select what is the suitable scope to your project

Step 1: Set up a Project in the Google Cloud Platform (GCP) Console
  • 1. Go to the GCP Console (console.cloud.google.com) and create a new project or select an existing project.
  • 2. Make sure you have the necessary permissions to manage the project.
Step 2: Enable the Google Identity API
  • 1. In the GCP Console, go to the "APIs & Services" section.
  • 2. Click on "Library" in the left sidebar.
  • 3. Search for any API and select the searched API. For example: Google Drive API
  • 4. Click on the "Enable" button to enable the API.
Step 3: Create OAuth 2.0 Client Credentials
  • 1. In the GCP Console, go to the "APIs & Services" section.
  • 2. Click on "Credentials" in the left sidebar.
  • 3. Click on the "Create Credentials" button and select "OAuth client ID" from the dropdown menu.
  • 4. Select the "Web Application" type or any based on your use case.
  • 5. (Important) Enter a name for your OAuth client and specify the authorized JavaScript origins or redirect URIs as follows.
    Origin:
    Redirect URI: /google/oauth/callback
  • 6. Click on the "Create" button to generate the client ID and client secret.
  • 7. Take note of the client ID and client secret, as you will need them in your application's code.
  • 8. Copy the client ID and client secret to the form above.
Step 4: Configure OAuth 2.0 Scopes (optional)
  • 1. In the GCP Console, go to the "APIs & Services" section.
  • 2. Click on "Credentials" in the left sidebar.
  • 3. Find your OAuth client credentials and click on the pencil icon to edit.
  • 4. Under the "OAuth consent screen" tab, you can configure the OAuth scopes required by your application.
  • 5. Click on the "Add or Remove Scopes" button to select the desired scopes.
  • 6. Save your changes.