Skip to content
Snippets Groups Projects
Commit d5a1285e authored by Elian Loraux's avatar Elian Loraux
Browse files

change readme to generic

parent e7e164b0
No related branches found
No related tags found
No related merge requests found
# SSO FFCU
# Keycloak
This is dockerised Keycloak system. Keycloak support openid_connect.
This project is part of "Transformation Numérique" project from FFCU (https://www.uncu.fr/).
It's designed to be connected to a Dolibarr instance and other partners applciations.
## Setting up your environement
......@@ -14,11 +13,11 @@ It's designed to be connected to a Dolibarr instance and other partners applciat
`docker-compose up`
## Configuration
## Configuration
### Create realm, first user and connect first application
### Create realm, first user and connect first application
Follow the official [get started tutorial](https://www.keycloak.org/getting-started/getting-started-docker)
Follow the official [get started tutorial](https://www.keycloak.org/getting-started/getting-started-docker)
### Link a Dolibarr instance to Keycloak
......@@ -34,8 +33,8 @@ To set up SSO with dolibarr you need folow this insctruction :
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 variables 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'`
5.
- In dev : choose username matching : `preferred_username`
5.
- In dev : choose username matching : `preferred_username`
- In prod : Choose mail matching method
For many information, follow the [dolibarr tutorial](https://wiki.dolibarr.org/index.php?title=Authentication,_SSO_and_SSL#Mode_openid_connect)
......@@ -44,15 +43,14 @@ For many information, follow the [dolibarr tutorial](https://wiki.dolibarr.org/i
#### Final config KeyCloak Dolibarr for Prod (WIP)
- In Realm settings > Login, check following options
- Forgot password
- Remember me
- Email as username
- login with email
- Forgot password
- Remember me
- Email as username
- login with email
- verify email
- Realm settings > Email, configur your SMTP parameters + mail informations
- Realm settings > Theme, add your custom theme
- If needed create users group
- Create your users
- Create your users
- Client > account-console > sttings
- Set web origins to *
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment