From 8ed618796b20f7ffe19b7667283f3a138293e811 Mon Sep 17 00:00:00 2001
From: Elian Loraux <elian.loraux@tetras-libre.fr>
Date: Fri, 3 May 2024 11:17:49 +0200
Subject: [PATCH] start poc of SSO with keycloak in dolibarr

---
 Readme.md    | 6 ++++++
 keycloak.yml | 1 +
 2 files changed, 7 insertions(+)
 create mode 120000 keycloak.yml

diff --git a/Readme.md b/Readme.md
index bd0555d..d34b4fa 100644
--- a/Readme.md
+++ b/Readme.md
@@ -23,6 +23,12 @@ chmod -R a-w dolibarr/htdocs/conf/
 touch dolibarr/documents/install.lock
 ```
 
+## SSO with keycloak
+to use sso with keycloak : 
+1. add `keycloak.yml` in `COMPOSE_FILE` constant in `.env` file
+2. set in `dolibarr_src/htdocs/config/conf.php` `$dolibarr_main_authentication='openid_connect,dolibarr'`
+3. Configure keycloak and dolibarr [tutorial of dolibarr](https://wiki.dolibarr.org/index.php?title=Authentication,_SSO_and_SSL#Mode_openid_connect)
+
 ## Databases (For developpement)
 
 There is a `dumps/` directory in this repository holding dumps from dev the instances of Dolibarr we use
diff --git a/keycloak.yml b/keycloak.yml
new file mode 120000
index 0000000..6fba985
--- /dev/null
+++ b/keycloak.yml
@@ -0,0 +1 @@
+../sso/keycloak.yml
\ No newline at end of file
-- 
GitLab