Line 58:
Line 58:
* 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.
* 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.
* Go on Google console https://console.cloud.google.com/ - Menu API and services - Credentials, and create an '''OAuth ID client'''. You must use the URL found at previous step as '''Authorized redirect URIs'''.
* Go on Google console https://console.cloud.google.com/ - Menu API and services - Credentials, and create an '''OAuth ID client'''. You must use the URL found at previous step as '''Authorized redirect URIs'''.
−
* 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".
+
* 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/permissions "'''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"