This is a sandbox / sample project to illustrate the multi-tenant with Keycloak and Spring Boot Multi tenant with Keycloak
Start your Keycloak server before running the app
- How to install & start Keycloak : http://blog.ineat-conseil.fr/2017/11/securisez-vos-apis-spring-avec-keycloak-1-installation-de-keycloak/
- How to import roles, clients, ... of a realm for this project :
- Click on "Import" in Keycloak main menu
- Click on "Select file", and find realm-ORGA1-export.json.
- Turn on "Import clients", "Import realm roles" and "Import client roles".
- Click on "Import"
- Repeat previous steps for realm-ORGA2-export.json
The previous steps assume that the realm exist. You can create a realm manually, or import it with the "Add realm" button located in main menu (under combobox used to select a Realm).
You can run the project with the following command :
mvn spring-boot:run