Skip to content

Google

This guide will help you set up Google OAuth authentication for your DataSpace application.

  • Go to the Google Cloud Console
  • Create a new project or select an existing one
  • Note down your project ID
  • Go to “APIs & Services” > “Credentials”
  • Click “Create Credentials” > “OAuth 2.0 Client IDs”
  • Choose “Web application” as the application type
  • Configure the OAuth consent screen if prompted
  • Authorized redirect URIs:
    • Add the backend URL (BACKEND_BASE_URL) followed by /signin-google, e.g., https://api.dataspace.acme.com/signin-google

After creating the OAuth client, you’ll get:

  • Client ID (looks like: 123456789-abcdefg.apps.googleusercontent.com)
  • Client Secret (looks like: GOCSPX-abcdefghijklmnopqrstuvwxyz)

Set the client ID in .env and write the client secret to secrets/google_client_secret. Then run ./start.sh so the backend picks them up.

Terminal window
GOOGLE_CLIENT_ID=your_google_client_id_here

An empty client ID disables Google sign-in.