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/installation/KeycloakCASClientInstallation.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/keycloak/protocol/cas/installation/KeycloakCASClientInstallation.java b/src/main/java/org/keycloak/protocol/cas/installation/KeycloakCASClientInstallation.java
index 62487dc..1a99abf 100644
--- a/src/main/java/org/keycloak/protocol/cas/installation/KeycloakCASClientInstallation.java
+++ b/src/main/java/org/keycloak/protocol/cas/installation/KeycloakCASClientInstallation.java
@@ -1,5 +1,8 @@
 package org.keycloak.protocol.cas.installation;
 
+import jakarta.ws.rs.core.MediaType;
+import jakarta.ws.rs.core.Response;
+import jakarta.ws.rs.core.UriBuilder;
 import org.keycloak.Config;
 import org.keycloak.models.ClientModel;
 import org.keycloak.models.KeycloakSession;
@@ -9,9 +12,6 @@
 import org.keycloak.protocol.cas.CASLoginProtocol;
 import org.keycloak.services.resources.RealmsResource;
 
-import javax.ws.rs.core.MediaType;
-import javax.ws.rs.core.Response;
-import javax.ws.rs.core.UriBuilder;
 import java.net.URI;
 
 public class KeycloakCASClientInstallation implements ClientInstallationProvider {
@@ -22,7 +22,7 @@
         String bindingUrl = RealmsResource.protocolUrl(bindingUrlBuilder)
                 .build(realm.getName(), CASLoginProtocol.LOGIN_PROTOCOL).toString();
         String description = "CAS Server URL: " + bindingUrl + "\n" +
-                "CAS Protocol: CAS 2.0/3.0 (SAML 1.1 is not supported)\n" +
+                "CAS Protocol: CAS 2.0/3.0, SAML 1.1\n" +
                 "Use CAS REST API: false (unsupported)";
         return Response.ok(description, MediaType.TEXT_PLAIN_TYPE).build();
     }

--
Gitblit v1.9.1