Odoo-india > News  > Social Site Authentication in Odoo 13

Social Site Authentication in Odoo 13

In odoo, the conventional technique for login is by coming into username and password. Apart from this, there may be additionally an choice to log in to odoo 13 utilizing different social media accounts. This choice permits the customers to signal in odoo utilizing their google or Facebook account. Before shifting additional, first be sure that the incoming and outgoing server is about correctly. Refer to this weblog for more information on the email configuration in odoo 13.
After organising the e-mail configuration, go to settings -> general settings and allow the choice OAuth Authentication.
project-profitability-odoo-13
Once it’s enabled and saved, you may see a brand new choice
project-profitability-odoo-13
Enable Google Authentication to permit users to signal in with their google account. Once that is enabled, you may see an choice to enter the shopper id.
project-profitability-odoo-13
Click on the tutorial choice to see the best way to get a shopper id.
To get shopper id, login to your google account and go to https://console.developers.google.com/
After this, create a brand new venture and click on on the auth consent display screen. Fill the applying name and save.
project-profitability-odoo-13
After saving, click on on credentials and choose OAuth Client ID.
project-profitability-odoo-13
Select net utility from the checklist and enter a sound redirect URL. Entering the uncooked IP tackle (http://0.0.0.0:8013/auth_oauth/signin) just isn’t allowed. It must be a correct area identify or IP tackle with .com or org.
project-profitability-odoo-13
Once you click on on Create, You will get a window that shows the shopper id and the shopper secret. Now go to Odoo and enter the shopper id in the settings -> normal settings -> google authentication -> client ID discipline and click on on save. Then go to settings -> Users and you may see the brand new tab Oath with the oath suppliers checklist.
project-profitability-odoo-13
Open Odoo.com Accounts and untick the choice allowed, then open Google OAuth2 and allow the choice allowed. Now we are able to create new customers with the e-mail tackle of the person given as google account electronic mail tackle, give OAuth supplier as Google OAuth2. Then save the document . Then on the login web page, you may see the choice login with google account.
project-profitability-odoo-13
When you choose to log in with google choice, then you may be redirected to Google login web page and as soon as the login is profitable, it should redirect to odoo.
Use Facebook login:
Another choice to signal in to odoo is utilizing the person’s Facebook account. For this, go to https://developers.facebook.com/apps and log in utilizing your Facebook account. Then click on on the choice so as to add a brand new app.
project-profitability-odoo-13
Provide identify and electronic mail for the app and click on on the create app id button.
project-profitability-odoo-13
Once the app is created, we are able to see the created app and app id.  Provide the area of odoo, full URL in the settings of the newly created app. Domain given must be the identical because the area used in odoo. Save the information and replica the newly created app id. Now go to odoo and from Settings – > Oath suppliers open Facebook Graph. Then allow the choice allowed.
project-profitability-odoo-13
Once allowed, you may go to the login web page and there you will note the brand new choice to log in with Facebook.
project-profitability-odoo-13
No Comments

Leave a reply