Dolibarr
Configure Dolibarr authentication with Pocket ID
The following example uses
dolibarr.example.comandid.example.com, make sure to update these to your server names.
- In Pocket-ID create a new OIDC Client, name it i.e.
Dolibarr - Set the callback url to:
https://dolibarr.example.com/core/modules/openid_connect/callback.php, or leave blank to autofill on first login. - Copy the
Client ID,Client Secret,Authorization URL,Token URL,Userinfo URLandLogout URLfor the next steps.
Dolibarr Setup
[!WARNING] The email address between the Pocket ID and Dolibarr account have to match.
- Login to Dolibarr as the admin user.
- Go to Home -> Setup -> Security and select OpenID authentication parameters.
- Enter the values for the fields as given below:
Display Nameas 'Pocket ID' or something similar.Client Idas theClient IDfrom above.Client secretas theClient Secretfrom above.Scopesas 'openid profile email'.Authorize URLasAuthorization URLfrom above.Token URLasToken URLfrom above.User info URLasUserinfo URLfrom above.Token URLasToken URLfrom above.Logout URLasLogout URLfrom above.
- Edit the file
conf.phpto replace the current value ofdolibarr_main_authenticationwithopenid_connect,dolibarr. - Logout and test the OAuth based login.