Important: Make sure Odoo is correctly configured to send email before starting this tutorial. Odoo will need to email an activation link when you enable OAUTH.
So, let’s get started.
Enabling OAuth Support in Odoo
1. Login to Odoo as the Administrator
2. Browse to Settings -> Configuration -> General Settings:
3. □ Allow external users to sign up ->check this
4. Template user for new users created through signup must be Template User.
Enabling Google App Engine Admin Console
1. Browse to https://admin.google.com and login as the Google domain adminstrator
2. Click More Controls at the bottom of the page
3. Click More Google Apps
4. Click the X next to Filter: Top featured services to clear the filter
5. Scroll down the list and click Google App Engine Admin Console
6. Turn it ON for everyone
Create Google Apps OAuth2 access for Odoo
1. Browse to https://console.developers.google.com/project and if necessary login
2. Click Create Project
3. In Project Name enter whatever you want, e.g. odoo
4. Click Create
5. In the menu on the left, expand APIs & auth then click Credentials
6. Click Create new Client ID
7. Under Authorized JavaScript origins enter your server domain name, e.g. http://mydomain.com
8. Under Authorized redirect URI enter you domain plus the OAUTH path, e.g. http://mydomain.com/auth_oauth/signin
9. Click Create client ID
10. In the menu click Consent screen
11. Select an email address from the drop down menu
12. In Product Name enter a description, e.g. odoo
13. Click Save
14. In the menu click Credentials and leave the browser window open
Add Google OAuth2 credentials to Odoo
1. Login to Odoo as the Administrator
2. Browse to Settings -> OAuth Providers
Note : If you don't found OAuth Providers, Please go to General Settings and check the checkbox of Use external authentication providers of authentication.
3. Click Odoo.com Accounts to open the settings window
4. Click Edit then uncheck the Allowed checkbox
5. Click Save then click Providers to return to the list
6. Click Google OAuth2 to open the settings window
7. Click Edit
8. From the Google Developers Console, copy and paste the Client ID into the box in Odoo
9. Check the Allowed checkbox
10. Click Save
Good Explaination..!
when i select database and click to login with google it shows Error Access Denied. don't allow to login with email id and password. also question is login with google allow to directly login with email and password or user need to first sign up and then user can login?