722 B

KEYCLOAK GATEKEEPER

Proxy pour service redirigeant vers Keycloak pour authentification

PRE REQUIS

  • Docker / docker compose
  • Instance Keycloak

CONFIFURATION

Gatekeeper

Config file:

  • Renseigner gatekeeper-config.yml:

Coomands:

  • Renseigner les champs suivants:
      - "--discovery-url=https://<MON_KEYCLOAK>/auth/realms/<MON_REALM>/.well-known/openid-configuration"
      - "--client-id=<CLIENT_ID>"
      - "--client-secret=<CLIENT_SECRET>"
      - "--listen=0.0.0.0:8880"
      - "--upstream-url=http://<MON_SERVICE>:<PORT>"

Keycloak

  • Créer un client:

keycloak illustration

UTILISATION

docker compose up -d