ajout illustrations config
This commit is contained in:
parent
838b2d7388
commit
c98c83edf6
49
README.md
49
README.md
@ -2,48 +2,69 @@
|
||||
|
||||
Proxy pour service redirigeant vers Keycloak pour authentification
|
||||
|
||||
## PRE REQUIS
|
||||

|
||||
|
||||
- Docker / docker compose
|
||||
## PRE REQUIS :paperclip:
|
||||
|
||||
- Docker / docker compose :whale:
|
||||
- Instance Keycloak
|
||||
|
||||
## CONFIFURATION
|
||||
## CONFIFURATION :wrench:
|
||||
|
||||
### Gatekeeper
|
||||
|
||||
#### Config file (TO DO):
|
||||
- Renseigner gatekeeper-config.yml:
|
||||
```bash
|
||||
|
||||
# TO DO
|
||||
```
|
||||
|
||||
#### Commandes:
|
||||
#### DOCKER COMPOSE
|
||||
- Renseigner les champs suivants:
|
||||
```bash
|
||||
- "--discovery-url=https://<MON_KEYCLOAK>/auth/realms/<MON_REALM>/.well-known/openid-configuration"
|
||||
- "--client-id=<CLIENT_ID>"
|
||||
- "--client-secret=<CLIENT_SECRET>"
|
||||
# le port écouté doit être le même que celui mappé sur l'hôte
|
||||
- "--listen=0.0.0.0:8880"
|
||||
- "--upstream-url=http://<MON_SERVICE>:<PORT>"
|
||||
```
|
||||
|
||||
### Keycloak
|
||||
:warning: Le port renseigné dans "--upstream-url=http://<MON_SERVICE>:<PORT>" doit correspondre au port exposé par le conteneur.
|
||||
|
||||
:skull: Les port mappés pour le service gatekeeper doivent être les mêmes et doivent correspondre avec celui renseigné au niveau de "--listen=0.0.0.0:8880"
|
||||
|
||||
### Keycloak :key:
|
||||
|
||||
- Créer un client:
|
||||
```bash
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
> Le client secret se trouve dans l'inglet "credentials"
|
||||
|
||||
- Créer une audience:
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## UTILISATION :rocket:
|
||||
|
||||
- Cloner le projet:
|
||||
```bash
|
||||
git clone --submodules https://git.legaragenumerique.fr/GARAGENUM/keycloak-gatekeeper
|
||||
cd keycloak-gatekeeper
|
||||
```
|
||||
|
||||
|
||||

|
||||
|
||||
## UTILISATION
|
||||
|
||||
- Lancer les conteneurs:
|
||||
```bash
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
## TO DO
|
||||
## TO DO :bookmark_tabs:
|
||||
|
||||
- [ ] Injecter gatekeeper-config.yml via volumes
|
||||
- [ ] Keycloak client config illustrations
|
||||
- [X] Keycloak client config illustrations
|
||||
- [ ] Illustration workflow
|
||||
@ -1,8 +1,16 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
|
||||
service:
|
||||
image: exemple.service
|
||||
# ports:
|
||||
# - NO:NO
|
||||
|
||||
gatekeeper:
|
||||
image: dockerregistry.legaragenumerique.fr/gatekeeper
|
||||
build:
|
||||
context: keycloak-gatekeeper/
|
||||
container_name: gatekeeper
|
||||
restart: always
|
||||
ports:
|
||||
|
||||
BIN
docs/keycloak-1.png
Normal file
BIN
docs/keycloak-1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 106 KiB |
BIN
docs/keycloak-2.png
Normal file
BIN
docs/keycloak-2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 84 KiB |
BIN
docs/keycloak-3.png
Normal file
BIN
docs/keycloak-3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 74 KiB |
BIN
docs/keycloak-4.png
Normal file
BIN
docs/keycloak-4.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 55 KiB |
BIN
docs/principe.png
Normal file
BIN
docs/principe.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 297 KiB |
Loading…
x
Reference in New Issue
Block a user