SSO
This is dockerised Keycloak system. Keycloak support openid_connect. This project is part of "Transformation Numérique" project from FFCU. It's designed to be connected to a Dolibarr instance and other partners applciations.
Setting up your environement
- Clone this repository
cp .env.sample .env
- Edit .env (host, keycloak admin credential and MariaDB password)
Launch environement
docker-compose up
Configuration
Create realm, first user and connect first application
Follow the official get started tutorial
Link a Dolibarr instance to Keycloak
Prerequisites
Set un dockerised Dolibarr
Set up
To set up SSO with dolibarr you need folow this insctruction :
- Create user with the same username in dolibarr and keycloak
- Generate the dolibarr variable with
dolibarr_variables.py
. If you don't know where to find the information requested by the script, see Prerequisites - Put generated variable in dolibarr > Setup > Other Setup
- 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, follow the dolibarr tutorial