From b4f3c6e5d055d316cbdeee8100e84b814887d920 Mon Sep 17 00:00:00 2001 From: treydock Date: Wed, 20 Nov 2024 07:54:06 -0500 Subject: [PATCH] Fix kcadm-wrapper to check proper value for credential expiration (#334) --- files/kcadm-wrapper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/kcadm-wrapper.sh b/files/kcadm-wrapper.sh index d8d8acbf..7b5fdd4e 100644 --- a/files/kcadm-wrapper.sh +++ b/files/kcadm-wrapper.sh @@ -3,7 +3,7 @@ # shellcheck source=/dev/null . /opt/keycloak/conf/kcadm-wrapper.conf -EXPIRES=$(/usr/bin/sed -n -r 's|.*"refreshExpiresAt" : ([0-9]*).*|\1|p' "$CONFIG" 2>/dev/null || echo "0") +EXPIRES=$(/usr/bin/sed -n -r 's|.*"expiresAt" : ([0-9]*).*|\1|p' "$CONFIG" 2>/dev/null || echo "0") NOW=$(/usr/bin/date +%s%3N) if [ ! -f "$CONFIG" ] || [ "$EXPIRES" -lt "$NOW" ]; then