From 6ba3811487db038532dd9f1765920323d9e99e86 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Sun, 14 Jul 2024 18:48:58 -0600 Subject: [PATCH] Update Docker & Kubernetes/Docker/Docker Compose/Keycloak.md --- .../Docker/Docker Compose/Keycloak.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Docker & Kubernetes/Docker/Docker Compose/Keycloak.md b/Docker & Kubernetes/Docker/Docker Compose/Keycloak.md index db5e8d1..8838644 100644 --- a/Docker & Kubernetes/Docker/Docker Compose/Keycloak.md +++ b/Docker & Kubernetes/Docker/Docker Compose/Keycloak.md @@ -4,6 +4,25 @@ - [Original Reference Deployment Video](https://www.youtube.com/watch?v=6ye4lP9EA2Y) - [Theme Customization Documentation](https://www.baeldung.com/spring-keycloak-custom-themes) +## Keycloak Authentication Sequence +``` mermaid +sequenceDiagram + participant User + participant Traefik as Traefik Reverse Proxy + participant Keycloak + participant Services + + User->>Traefik: Access service URL + Traefik->>Keycloak: Redirect to Keycloak for authentication + User->>Keycloak: Provide credentials for authentication + Keycloak->>User: Return authorization token/cookie + User->>Traefik: Send request with authorization token/cookie + Traefik->>Keycloak: Validate token/cookie + Keycloak->>Traefik: Token/cookie is valid + Traefik->>Services: Forward request to services + Services->>Traefik: Response back to Traefik + Traefik->>User: Return service response +``` ## Docker Configuration