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/main/java/org/keycloak/protocol/cas/representations/CASServiceResponseAuthenticationSuccess.java |   27 +++++++++++++++------------
 1 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/src/main/java/org/keycloak/protocol/cas/representations/CASServiceResponseAuthenticationSuccess.java b/src/main/java/org/keycloak/protocol/cas/representations/CASServiceResponseAuthenticationSuccess.java
index 30a37c6..94d34b1 100644
--- a/src/main/java/org/keycloak/protocol/cas/representations/CASServiceResponseAuthenticationSuccess.java
+++ b/src/main/java/org/keycloak/protocol/cas/representations/CASServiceResponseAuthenticationSuccess.java
@@ -1,21 +1,24 @@
 package org.keycloak.protocol.cas.representations;
 
+import jakarta.xml.bind.annotation.XmlAccessType;
+import jakarta.xml.bind.annotation.XmlAccessorType;
+import jakarta.xml.bind.annotation.XmlElement;
+import jakarta.xml.bind.annotation.XmlElementWrapper;
+import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 import org.keycloak.protocol.cas.utils.AttributesMapAdapter;
 
-import javax.xml.bind.annotation.*;
-import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 import java.util.List;
 import java.util.Map;
 
 @XmlAccessorType(XmlAccessType.FIELD)
 public class CASServiceResponseAuthenticationSuccess {
     private String user;
+    @XmlJavaTypeAdapter(AttributesMapAdapter.class)
+    private Map<String, Object> attributes;
     private String proxyGrantingTicket;
     @XmlElementWrapper
     @XmlElement(name="proxy")
     private List<String> proxies;
-    @XmlJavaTypeAdapter(AttributesMapAdapter.class)
-    private Map<String, Object> attributes;
 
     public String getUser() {
         return this.user;
@@ -23,6 +26,14 @@
 
     public void setUser(final String user) {
         this.user = user;
+    }
+
+    public Map<String, Object> getAttributes() {
+        return this.attributes;
+    }
+
+    public void setAttributes(final Map<String, Object> attributes) {
+        this.attributes = attributes;
     }
 
     public String getProxyGrantingTicket() {
@@ -39,13 +50,5 @@
 
     public void setProxies(final List<String> proxies) {
         this.proxies = proxies;
-    }
-
-    public Map<String, Object> getAttributes() {
-        return this.attributes;
-    }
-
-    public void setAttributes(final Map<String, Object> attributes) {
-        this.attributes = attributes;
     }
 }

--
Gitblit v1.9.1