Skip to main content
Version: v0.16

Google OAuth

Set up Google authentication for your Conduit application.

Prerequisites​

  • Google Cloud Console account
  • Conduit with Authentication module running

Step 1: Create Google Project​

  1. Go to Google Cloud Console
  2. Create a new project or select existing
  3. Navigate to APIs & Services > Credentials

Step 2: Create OAuth Credentials​

  1. Click Create Credentials > OAuth Client ID

Google Credentials

  1. Select Web application as application type
  2. Add authorized redirect URI:
    http://localhost:3000/hook/authentication/google

Google Redirect URI

  1. Save your Client ID and Client Secret

Google Secrets

Step 3: Configure Conduit​

  1. Open Admin Panel > Authentication > Settings
  2. Enable Google provider
  3. Enter your Client ID and Client Secret
  4. Save configuration

Step 4: Test Authentication​

Get Auth URL​

curl -X GET 'http://localhost:3000/authentication/init/google'

Response:

{
"result": "https://accounts.google.com/o/oauth2/v2/auth?client_id=..."
}

Complete Flow​

  1. Navigate to the returned URL in browser
  2. Sign in with Google account
  3. Authorize the application
  4. Conduit handles the callback and returns tokens

Production Configuration​

For production, update the redirect URI:

https://yourdomain.com/hook/authentication/google

Scopes Requested​

  • email - User's email address
  • profile - User's name and profile picture