diff --git a/pom.xml b/pom.xml index 6cc48a7..a5c02cf 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ org.keycloak keycloak-protocol-cas - 24.0.5 + 25.0.0 Keycloak CAS Protocol @@ -32,10 +32,11 @@ 3.5.3.Final 2.2.1.Final 4.13.2 + 6.2.7.Final UTF-8 17 - 1717490835 + 1718009227 @@ -64,6 +65,12 @@ ${apache.httpcomponents.version} provided + + org.jboss.resteasy + resteasy-core-spi + ${resteasy.version} + provided + org.jboss.logging jboss-logging diff --git a/src/main/java/org/keycloak/protocol/cas/CASLoginProtocol.java b/src/main/java/org/keycloak/protocol/cas/CASLoginProtocol.java index 52dc060..7e9d797 100644 --- a/src/main/java/org/keycloak/protocol/cas/CASLoginProtocol.java +++ b/src/main/java/org/keycloak/protocol/cas/CASLoginProtocol.java @@ -11,6 +11,7 @@ import org.keycloak.events.EventType; import org.keycloak.forms.login.LoginFormsProvider; import org.keycloak.models.*; +import org.keycloak.protocol.ClientData; import org.keycloak.protocol.LoginProtocol; import org.keycloak.protocol.cas.endpoints.AbstractValidateEndpoint; import org.keycloak.protocol.cas.utils.LogoutHelper; @@ -128,6 +129,16 @@ public Response sendError(AuthenticationSessionModel authSession, Error error) { return ErrorPage.error(session, authSession, Response.Status.INTERNAL_SERVER_ERROR, error.name()); } + @Override + public ClientData getClientData(AuthenticationSessionModel authSession) { + return new ClientData(authSession.getRedirectUri(), null, null, null); + } + + @Override + public Response sendError(ClientModel clientModel, ClientData clientData, Error error) { + return null; + } + @Override public Response backchannelLogout(UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) { String logoutUrl = clientSession.getRedirectUri();