Skip to content
v2.18.0GitHub

Dolibarr

Sign in to the Dolibarr ERP and CRM with Pocket ID.

  1. In Pocket ID, open Administration → OIDC Clients and click Add OIDC Client.
  2. Enter a name such as Dolibarr and add the callback URL https://dolibarr.example.com/core/modules/openid_connect/callback.php.
  3. 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.
  4. On the client’s Access tab, select the groups that may sign in under Allowed User Groups, or choose All Users.
  1. Log in to Dolibarr as the admin user.
  2. Open Home → Setup → Security and select OpenID authentication parameters.
  3. Fill in the fields:
    • Display Name: Pocket ID or 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.
  4. In the file conf.php, replace the current value of dolibarr_main_authentication with openid_connect,dolibarr.
  5. Log out and sign in with Pocket ID to test it.