From fb26284c00e09e656732eb7ca4570afd052e0067 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Fri, 21 Jun 2024 11:47:01 +0000
Subject: [PATCH] Improve error reporting in CAS ticket validation

---
 src/main/java/org/keycloak/protocol/cas/representations/CASServiceResponse.java |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/src/main/java/org/keycloak/protocol/cas/representations/CASServiceResponse.java b/src/main/java/org/keycloak/protocol/cas/representations/CASServiceResponse.java
index 42c8297..3e8fad8 100644
--- a/src/main/java/org/keycloak/protocol/cas/representations/CASServiceResponse.java
+++ b/src/main/java/org/keycloak/protocol/cas/representations/CASServiceResponse.java
@@ -1,11 +1,13 @@
 package org.keycloak.protocol.cas.representations;
 
-import javax.xml.bind.annotation.XmlRootElement;
+import jakarta.xml.bind.annotation.XmlRootElement;
 
 @XmlRootElement(name = "serviceResponse")
 public class CASServiceResponse {
     private CASServiceResponseAuthenticationFailure authenticationFailure;
     private CASServiceResponseAuthenticationSuccess authenticationSuccess;
+    private CASServiceResponseProxySuccess proxySuccess;
+    private CASServiceResponseProxyFailure proxyFailure;
 
     public CASServiceResponseAuthenticationFailure getAuthenticationFailure() {
         return this.authenticationFailure;
@@ -22,4 +24,20 @@
     public void setAuthenticationSuccess(final CASServiceResponseAuthenticationSuccess authenticationSuccess) {
         this.authenticationSuccess = authenticationSuccess;
     }
+
+    public CASServiceResponseProxySuccess getProxySuccess() {
+        return this.proxySuccess;
+    }
+
+    public void setProxySuccess(final CASServiceResponseProxySuccess proxySuccess) {
+        this.proxySuccess = proxySuccess;
+    }
+
+    public CASServiceResponseProxyFailure getProxyFailure() {
+        return this.proxyFailure;
+    }
+
+    public void setProxyFailure(final CASServiceResponseProxyFailure proxyFailure) {
+        this.proxyFailure = proxyFailure;
+    }
 }

--
Gitblit v1.9.1