Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ineat/spring-keycloak-multitenant


https://github.com/ineat/spring-keycloak-multitenant

Last synced: about 2 months ago
JSON representation

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.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 :

```shell
mvn spring-boot:run
```