Skip to content

Instantly share code, notes, and snippets.

@macagua
Last active April 1, 2022 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save macagua/2611f2ea7d928fc81c65e954d8e48b2b to your computer and use it in GitHub Desktop.
Save macagua/2611f2ea7d928fc81c65e954d8e48b2b to your computer and use it in GitHub Desktop.
Odoo and Google OAuth 2

Odoo and Google OAuth 2

UPDATED: Wed 30 Mar 2022 06:17:03 PM -04.

Configure to allow user to sign up using OAuth

Tested

  • Odoo 13 CE.

OAuth providers

First activate your Developer mode then you follow the steps, Then install the auth_oauth module

Google OAuth 2

More info: https://support.google.com/cloud/answer/6158849?hl=en

  1. Go to Dashboard -> YOUR-PROJECT -> APIs and services > Credentials -> click on CREATE CREDENTIALS button -> select the OAuth Client ID option
  2. Select the Type of application as Web Application option
  3. Enter the Name as Odoo App Auth
  4. Enter the Authorized Redirect URIs enter https://demo.pidela.cl/auth_oauth/signin -> click on Add URI button
  5. Click on Create button
  6. Get the Facebook app-id and set to your Odoo -> Settings -> Users and companies -> OAuth Providers -> Google OAuth 2 -> click on Edit button -> enter the Client ID and mark the checkbox item Enabled -> click Save button.
  7. Now got to your login page https://YOURDOMAIN/web/login and clic on Login with Google.

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment