Enabling Google Sign-In With Odoo 16

Integrating Google Sign-In with Odoo 16 enhances the user experience by allowing users to authenticate using their Google accounts. This can simplify the login process and provide a seamless experience for users who prefer using their existing credentials. Here’s a step-by-step guide on how to enable Google Sign-In with Odoo 16.

Step 1: Create a Google Cloud Project

  1. Go to Google Cloud Console: Navigate to Google Cloud Console.
  2. Create a New Project: Click on the project drop-down and select “New Project.” Enter your project name and click “Create.”
  1. Go to the OAuth consent screen tab in the API & Services section.
  1. Select your user type (External or Internal).
  1. Fill in the necessary details like app name, user support email, and developer contact information.
  2. Add the scopes that your application will use.
  3. Save and continue.

Step 2: Configure OAuth 2.0 Credentials

  1. Go to the Credentials tab and click “Create Credentials.”

2. Click on Create Credentials, and select OAuth client ID

3. Add your authorized redirect URIs (e.g., http://your-odoo-domain/auth_oauth/signin).

4. Click “Create” to generate your client ID and secret.

Step 3: Configure OAuth2 in Odoo

  1. Go to Odoo General Settings ‣ Integrations and activate OAuth Authentication.
  2. Navigate back to General Settings > Integrations > OAuth Authentication, enable the option, and click Save. Then, go to General Settings > Integrations > Google Authentication, enable this option, and enter the Client ID from the Google API Dashboard. Finally, click Save.

Log in to Odoo with Google

To link the Google account to the Odoo profile, click on Log in with Google when first logging into Odoo.

Leave a Comment

Your email address will not be published. Required fields are marked *