From 7570332f6cb83c0b938b1032063b141be27c994a Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Tue, 13 Dec 2022 18:30:37 -0600 Subject: [PATCH] Allow using the user_id as the client id for the event (so that in metrics we can distinguish individual accounts). --- config/keycloak/keycloak.env | 3 ++- container-build/cerc-keycloak/Dockerfile | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/keycloak/keycloak.env b/config/keycloak/keycloak.env index c945c6b8..24135996 100644 --- a/config/keycloak/keycloak.env +++ b/config/keycloak/keycloak.env @@ -13,4 +13,5 @@ KC_HTTP_RELATIVE_PATH="/auth" KC_HOSTNAME_STRICT_HTTPS="false" KEYCLOAK_ADMIN=admin KEYCLOAK_ADMIN_PASSWORD=admin -REALM_NAME=cerc +X_API_CHECK_REALM=cerc +X_API_CHECK_CLIENT_ID="%user_id%" diff --git a/container-build/cerc-keycloak/Dockerfile b/container-build/cerc-keycloak/Dockerfile index b2c518b8..937a4253 100644 --- a/container-build/cerc-keycloak/Dockerfile +++ b/container-build/cerc-keycloak/Dockerfile @@ -3,7 +3,7 @@ RUN apk add --update --no-cache git WORKDIR /build RUN git clone https://github.com/cerc-io/keycloak-api-key-demo.git && \ cd keycloak-api-key-demo && \ - git checkout '043309204aba4c3cb2f6a006c58a9a430b733b29' && \ + git checkout 'd29c0894a8b79d8f9df2f030a2537807177cc283' && \ mvn -f api-key-module package FROM quay.io/keycloak/keycloak:20.0