From 4d94388e69f5c4720669bd3551d8a5785af27d71 Mon Sep 17 00:00:00 2001
From: Rodolphe Prin <rodolphe.prin@univ-lr.fr>
Date: Tue, 10 Nov 2026 13:45:03 +0000
Subject: [PATCH] Fix compilation against Keycloak 26.8.2 (OAuth2Code userId)
---
integrationTest/suite.sh | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/integrationTest/suite.sh b/integrationTest/suite.sh
index b2f2b24..ca556c1 100755
--- a/integrationTest/suite.sh
+++ b/integrationTest/suite.sh
@@ -80,6 +80,20 @@
fi
echo
+echo "Testing CAS 2.0 - malformed ticket..."
+response=$(curl --silent --write-out '%{http_code}' --output /dev/null "${keycloak_cas_url}/serviceValidate?service=http://localhost&ticket=ST-x--zz--y")
+if [ "$response" != "400" ]; then
+ echo "Malformed ticket returned HTTP ${response} instead of 400"
+ exit 1
+fi
+
+echo "Testing CAS 2.0 - proxyValidate without ticket..."
+response=$(curl --silent --write-out '%{http_code}' --output /dev/null "${keycloak_cas_url}/proxyValidate?service=http://localhost")
+if [ "$response" != "400" ]; then
+ echo "Missing ticket returned HTTP ${response} instead of 400"
+ exit 1
+fi
+
# SAML 1.1
echo "Testing SAML 1.1..."
ticket=$(get_ticket SAML)
--
Gitblit v1.10.0