Skip to content

Commit

Permalink
Update to Keycloak 25.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekkow committed Jul 16, 2024
1 parent 755fd78 commit 3458cda
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<groupId>org.keycloak</groupId>
<artifactId>keycloak-protocol-cas</artifactId>
<version>24.0.5</version>
<version>25.0.0</version>
<name>Keycloak CAS Protocol</name>
<description />

Expand All @@ -32,10 +32,11 @@
<jboss.logging.version>3.5.3.Final</jboss.logging.version>
<jboss.logging.tools.version>2.2.1.Final</jboss.logging.tools.version>
<junit.version>4.13.2</junit.version>
<resteasy.version>6.2.7.Final</resteasy.version>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.release>17</maven.compiler.release>
<project.build.outputTimestamp>1717490835</project.build.outputTimestamp>
<project.build.outputTimestamp>1718009227</project.build.outputTimestamp>
</properties>

<dependencies>
Expand Down Expand Up @@ -64,6 +65,12 @@
<version>${apache.httpcomponents.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-core-spi</artifactId>
<version>${resteasy.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging</artifactId>
Expand Down
11 changes: 11 additions & 0 deletions src/main/java/org/keycloak/protocol/cas/CASLoginProtocol.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 3458cda

Please sign in to comment.