support Click to see our new support page.

Login With External Accounts In Odoo

Login-With-External-Accounts-In-Odoo-2-e1559372103773
Author

Muhammed NabeelFeb. 15, 2019

Odoo has an advantage, it allows us to log in with external accounts like Google+, Facebook etc. In Order to get this function, firstly, we have to configure the Incoming and Outgoing mail servers correctly.

These are the steps to configure incoming mail servers:

Settings>Email>Incoming mail servers

Then clicking on the create button you will get a form like this,

configure incoming mail servers Login With External Accounts In Odoo

Then fill up the fields as:

  • Name: Any name you can choose related to the mail server.
  • Server Type: You can choose for POP, IMAP and local here. POP is the most used one and is used for getting emails from the server to a client.
  • Server Name: Name for the server. (eg:-pop.gmail.com)
  • Port: Port where the server listens to.
  • Username: Your email address.
  • Password: Password of your email.

To configure outgoing mail servers:

Settings>Email>Outgoing mail servers

Then clicking on the create button you will get a form like this,

configure outgoing mail servers

Then fill up the fields as:

  • Description: Description of the outgoing mail server.
  • Priority: The priority of your mail server. The lower the number the higher the priority. This will mean that the email server with the lowest number will be used the most.
  • SMTP Server: Name of the SMTP server. (example:-smtp.gmail.com)
  • SMTP Port: Port of your SMTP server. (example:- 465)
  • Connection Security: The type of security. You should choose SSL/TLS for Gmail. The data is then sent over HTTPS.
  • Username: Your email address.
  • Password: Password for your email address.

Next, install the OAuth2 Authentication module:

oAuth2 Authentication

Then Settings>General Settings, enable OAuth Authentication:

enable OAuth Authentication

Next enable Google Authentication:

Google Authentication

Then enter the client id. To get the client id to follow the Tutorial link below:

Enter client id

Then go to Users>OAuth Providers:

Select Google OAuth2 then paste the client id given by the Google app and tick the Allow checkbox and save it

OAuth Providers

After that, we got the link to Google account:

Via login through the Facebook account, then, go to Users>OAuth Providers:

Select the Facebook Graph then paste the client id given by the Facebook app and tick the Allow checkbox and save it.

Facebook Graph

To get the Facebook client id go to https://developers.facebook.com/apps

After that, we got the link to the Facebook account:

In such a way it is possible to Login With External Accounts In Odoo.

odoo_erp_services

LinkedIn LinkedIn