From 0ec41088c05da71dca382513e71d576206229057 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 25 Dec 2020 19:56:20 +0000 Subject: [PATCH] Update to Keycloak 12.0.0 --- src/main/java/org/keycloak/protocol/cas/CASLoginProtocol.java | 3 ++- pom.xml | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 3529e2f..c5c981b 100644 --- a/pom.xml +++ b/pom.xml @@ -22,7 +22,7 @@ <groupId>org.keycloak</groupId> <artifactId>keycloak-protocol-cas</artifactId> - <version>11.0.3</version> + <version>12.0.0</version> <name>Keycloak CAS Protocol</name> <description /> @@ -97,13 +97,13 @@ <dependency> <groupId>org.xmlunit</groupId> <artifactId>xmlunit-core</artifactId> - <version>2.8.0</version> + <version>2.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>com.jayway.jsonpath</groupId> <artifactId>json-path</artifactId> - <version>2.4.0</version> + <version>2.5.0</version> <scope>test</scope> </dependency> </dependencies> diff --git a/src/main/java/org/keycloak/protocol/cas/CASLoginProtocol.java b/src/main/java/org/keycloak/protocol/cas/CASLoginProtocol.java index 53f0a32..14f276a 100644 --- a/src/main/java/org/keycloak/protocol/cas/CASLoginProtocol.java +++ b/src/main/java/org/keycloak/protocol/cas/CASLoginProtocol.java @@ -121,7 +121,7 @@ } @Override - public void backchannelLogout(UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) { + public Response backchannelLogout(UserSessionModel userSession, AuthenticatedClientSessionModel clientSession) { String logoutUrl = clientSession.getRedirectUri(); String serviceTicket = clientSession.getNote(CASLoginProtocol.SESSION_SERVICE_TICKET); //check if session is fully authenticated (i.e. serviceValidate has been called) @@ -130,6 +130,7 @@ } ClientModel client = clientSession.getClient(); new ResourceAdminManager(session).logoutClientSession(realm, client, clientSession); + return Response.ok().build(); } private void sendSingleLogoutRequest(String logoutUrl, String serviceTicket) { -- Gitblit v1.9.1