Dolibarr
Sign in to the Dolibarr ERP and CRM with Pocket ID.
Create the client in Pocket ID
Section titled “Create the client in Pocket ID”- In Pocket ID, open Administration → OIDC Clients and click Add OIDC Client.
- Enter a name such as
Dolibarrand add the callback URLhttps://dolibarr.example.com/core/modules/openid_connect/callback.php. - Click Create and copy the Client ID and the Client secret. Under Show more details, also copy the Authorization URL, the Token URL, the Userinfo URL and the Logout URL. The client secret is only shown once.
- On the client’s Access tab, select the groups that may sign in under Allowed User Groups, or choose All Users.
Configure Dolibarr
Section titled “Configure Dolibarr”- Log in to Dolibarr as the admin user.
- Open Home → Setup → Security and select OpenID authentication parameters.
- Fill in the fields:
- Display Name:
Pocket IDor something similar. - Client Id: the Client ID from Pocket ID.
- Client secret: the Client secret from Pocket ID.
- Scopes:
openid profile email - Authorize URL: the Authorization URL from Pocket ID.
- Token URL: the Token URL from Pocket ID.
- User info URL: the Userinfo URL from Pocket ID.
- Logout URL: the Logout URL from Pocket ID.
- Display Name:
- In the file
conf.php, replace the current value ofdolibarr_main_authenticationwithopenid_connect,dolibarr. - Log out and sign in with Pocket ID to test it.