Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ineat/spring-keycloak-multitenant
https://github.com/ineat/spring-keycloak-multitenant
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ineat/spring-keycloak-multitenant
- Owner: ineat
- Created: 2018-11-19T19:10:02.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-23T13:52:09.000Z (over 3 years ago)
- Last Synced: 2024-03-26T21:29:07.832Z (9 months ago)
- Language: Java
- Size: 24.4 KB
- Stars: 29
- Watchers: 8
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring / Keycloak Multitenant Tutorial
This is a sandbox / sample project to illustrate the multi-tenant with Keycloak and Spring Boot
[Multi tenant with Keycloak](https://blog.ineat-conseil.fr/2018/11/securisez-vos-apis-spring-avec-keycloak-5-mise-en-place-dune-authentification-multi-domaines/)## How to start
> 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.jsonThe 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 :
```shell
mvn spring-boot:run
```