31,003
edits
Tag: 2017 source edit |
Tag: 2017 source edit |
||
| Line 54: | Line 54: | ||
This code is to use the Google OAuth 2 authentication. It is available with version 18+. | This code is to use the Google OAuth 2 authentication. It is available with version 18+. | ||
*First enable the | *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. | *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'''. | ||