I tried to activate the OAuth Module in Dolibarr 3.9.2 but I could not find any further information to make it working.
Of course I created the OAuth-2.0-Client-ID (Google APi ID and Secret) and then set MAIN_AUTHENTICATION_OPENID_URL to “https://accounts.google.com/o/oauth2/v2/auth”. Is that correct?
You need to configure some lines in the google_oauthcallback.php and functions_googleoauth.php files. These files handle the authentication flow and processing of OAuth requests.
In the google_oauthcallback.php file, you might need to adjust the configuration to match your specific setup. Look for lines that define variables like $googleClientId and $googleClientSecret .
In the functions_googleoauth.php file, you might need to modify the code that handles the OAuth authentication process. Look for functions related to Google OAuth, such as googleauth_getauthorizationurl() and googleauth_getuserinfo() . These functions interact with the Google API and retrieve user information.