P

Local bulletin

posted on November 24, 2024
last updated on Thursday, March 26, 2026 at 08:38 PM

Step 1: Set Up a Google Cloud Project

  1. Go to Google Cloud Console

    :

    • Visit the Google Cloud Console.
  2. Create a New Project

    :

    • Click on Create Project.
    • Name your project and click Create.
  3. Enable the OAuth Consent Screen

    :

    • Navigate to APIs & Services > OAuth consent screen.
      • image-20241124162105379
    • Select External (for apps accessible to all Google users) or Internal (for Google Workspace users within your organization).
    • Configure the following:
      • App Name: Name of your app.
      • User Support Email: Your email.
      • Developer Contact Information: Your contact email.
    • Click Save and Continue. For now, you can skip “Scopes” and “Test Users.”

Step 2: Enable APIs

  1. Enable Google APIs

    :

    • Go to APIs & Services > Library.
    • Enable the following APIs:
      • Google Identity Services API
      • OAuth2 API

Step 3: Create OAuth 2.0 Credentials

  1. Navigate to Credentials

    • Go to APIs & Services > Credentials.
  2. Create OAuth 2.0 Client ID

    :

    • Click Create Credentials and select OAuth client ID.

      • image-20241124161838781
    • Choose Web Application as the application type.

      • image-20241124161903236
    • Add your

      Authorized Redirect URIs

      :

      • For example, add http://localhost:8000/callback for local testing.
      • Add your production URLs for deployment.
        • image-20241124162449522
    • Click Create.

      • image-20241124162726161
      • the client is now registered
  3. Download Client Secret

    :

    • After creating the client, download the credentials file (a JSON file).
    • This file contains your client_id and client_secret.
Prev Next