Skip to content
Snippets Groups Projects

SSO

This is dockerised keycloak system

Setting up your environement

  1. Clone this repository
  2. cp .env.sample .env
  3. Edit .env (host, keycloak admin credential and MariaDB password)
  4. Run KeyCloak with docker-compose

Secure the first application

To secure the first application, folow this tutorial but start docker with the docker compose.

SSO with dolibarr

Prerequisites

Set up

To set up SSO with dolibarr you need folow this insctruction :

  1. Create user with the same username in dolibarr and keycloak
  2. Generate the dolibarr variable with dolibarr_variables.py. If you don't know where to find the information requested by the script, see Prerequisites
  3. Put generated variable in dolibarr > Setup > Other Setup
  4. Configure the authentication methods in conf.php (dolibarr_src/htdocs/conf/conf.php) and add openid_connect. $dolibarr_main_authentication='openid_connect'

For many information, folow the dolibarr tutorial