Portabase Logo
Portabase DashboardInstallationAuthenticationOAuth2Configurations

Google

Configure authentication via Google in Portabase.

Google integration allows your users to sign-in via their Google or Google Workspace account.

Check the OAuth2 configuration to understand global variables and role management.

Configuration Steps

Project Creation

Go to the Google Cloud Console and create a new project or select an existing one.

Go to APIs & Services > OAuth consent screen:

  • Choose the user type: External (any Google account) or Internal (restricted to your Workspace organization).
  • Complete the mandatory information (App name, email).

Credentials Creation

Open APIs & Services > Credentials. Click Create Credentials > OAuth client ID. Select Web application.

Redirect URLs

In Authorized redirect URIs, add the following URL: https://portabase.your-domain.com/api/auth/callback/google

Get the Keys

Validate to get your client ID and client secret.

Environment Variables

Add the following variables to your .env file or Docker configuration:

AUTH_SOCIAL_GOOGLE_CLIENT="your-google-client-id"
AUTH_SOCIAL_GOOGLE_SECRET="your-google-client-secret"

Restart the Dashboard

After updating your .env file, restart the instance:

portabase restart .
docker-compose down && docker-compose up -d

On this page