From 755fd78fa0ee0f2a67417a119382c63e02c1091e Mon Sep 17 00:00:00 2001 From: Alexandre Rocha Wendling <alexandrerw@celepar.pr.gov.br> Date: Tue, 16 Jul 2024 14:15:23 +0000 Subject: [PATCH] Proxy ticket service and proxy ticket validation Proxy endpoints improvements suggested by Jacek Kowalski Add ticket type to storage key Rename isreuse to isReusable Remove "parsing" of "codeUUID" that is String, not UUID Improve error reporting in CAS ticket validation --- src/test/java/org/keycloak/protocol/cas/ServiceResponseTest.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/keycloak/protocol/cas/ServiceResponseTest.java b/src/test/java/org/keycloak/protocol/cas/ServiceResponseTest.java index bed1f00..29ea43a 100644 --- a/src/test/java/org/keycloak/protocol/cas/ServiceResponseTest.java +++ b/src/test/java/org/keycloak/protocol/cas/ServiceResponseTest.java @@ -52,10 +52,10 @@ assertEquals("username", xpath.evaluate("/cas:serviceResponse/cas:authenticationSuccess/cas:user", doc)); int idx = 0; for (Node node : xpath.selectNodes("/cas:serviceResponse/cas:authenticationSuccess/cas:attributes/cas:list", doc)) { - assertEquals(((List)attributes.get("list")).get(idx), node.getTextContent()); + assertEquals(((List<?>)attributes.get("list")).get(idx), node.getTextContent()); idx++; } - assertEquals(((List)attributes.get("list")).size(), idx); + assertEquals(((List<?>)attributes.get("list")).size(), idx); assertEquals(attributes.get("int").toString(), xpath.evaluate("/cas:serviceResponse/cas:authenticationSuccess/cas:attributes/cas:int", doc)); assertEquals(attributes.get("string").toString(), xpath.evaluate("/cas:serviceResponse/cas:authenticationSuccess/cas:attributes/cas:string", doc)); -- Gitblit v1.9.1