Google Sign-In Authentication

The Google Sign-In Authentication is a useful function that allows your users to sign in to Odoo with their Google account.

This is particularly helpful if your organization uses Google Workforce and you want the employees within your organization to connect to Odoo with their Google Accounts.

Налаштування

The integration of the Google sign-in function requires configuration both on Google and on Odoo.

Google API Dashboard

  1. Go to the Google API Dashboard.

  2. Make sure the right project is opened. If you don’t have a project yet, click on Create Project, fill out the project name and other details of your company, and click on Create.

    Filling out the details of a new project

    Порада

    Choose the name of your own company from the drop-down menu.

Повноваження

  1. On the left side menu, click on Credentials.

    Credentials button menu
  2. Click on Create Credentials and select OAuth client ID.

    Oauth client id selection
  3. Select Web Application as the Application type. Now configure the allowed pages on which you will be redirected.

    In order to achieve this, in the Authorized redirect URIs field, enter your database’s domain immediately followed by /auth_oauth/signin. For example: https://mydomain.odoo.com/auth_oauth/signin, then click on Create.

    Creating oauth client id

Google Authentication on Odoo

Retrieve the Client ID

Once you have done the previous steps, two keys are generated on the Google API Dashboard: Client ID and Client Secret. Copy the Client ID.

Google OAuth Client ID generated

Odoo activation

  1. Go to Odoo General Settings ‣ Integrations and activate OAuth Authentication.

    Примітка

    You may have to log in again after this step.

  2. Go back to General Settings ‣ Integrations, activate Google Authentication, then fill out the Client ID with the key from the Google API Dashboard, and Save.

    Filling out the client id in Odoo settings

Log in to Odoo with Google

To link your Google account to your Odoo profile, click on Log in with Google when you are asked to choose a new password.

Reset password screen with "Log in with Google" button

Existing users must reset their password to access the reset password page, while new users can directly click on Log in with Google instead of choosing a new password.