Line 55:
Line 55:
This method is still experimental with version 18+.
This method is still experimental with version 18+.
−
* You must first create an OAuth ID clients into the Google console https://console.cloud.google.com/ - Menu API and services - Credentials
+
* First enable the module OAuth on Dolibarr.
−
+
* Into the setup of the module, you must create an OAuth entry for provider Google and label "Login" (no other label will works). You will find a value for a '''Redirect URI''' that you must use in the next step.
−
* Then enable the module OAuth on Dolibarr.
+
* Go on Google console https://console.cloud.google.com/ - Menu API and services - Credentials, and create an '''OAuth ID client'''
−
* Into the setup of the module, you must create an OAuth entry for provider Google and label "Login" (no other label will works).
+
* Go back to the Dolibarr OAuth setup page to enter the client ID and secret ID of the OAuth entry you have created. Choose the scope "openid" and "email".
−
* Enter the client ID and secret ID, choose the scope "openid" and "email"
* Edit the file conf/conf.php and set $dolibarr_main_authentication to "googleoauth"
* Edit the file conf/conf.php and set $dolibarr_main_authentication to "googleoauth"