Allow using the user_id as the client id for the event (so that in metrics we can distinguish individual accounts).

This commit is contained in:
Thomas E Lackey 2022-12-13 18:30:37 -06:00
parent f51ad8834b
commit 7570332f6c
2 changed files with 3 additions and 2 deletions

View File

@ -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%"

View File

@ -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