From 8b93a7b3bc325c9ef9b0606dac64e54a4e1e6975 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 28 Jul 2022 08:52:45 +0000 Subject: [PATCH] Update to Keycloak 19.0.0 --- pom.xml | 13 ++++++++++--- .../org/keycloak/protocol/cas/CASLoginProtocol.java | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 9d5518d..79f07bd 100644 --- a/pom.xml +++ b/pom.xml @@ -22,12 +22,13 @@ org.keycloak keycloak-protocol-cas - 18.0.2 + 19.0.0 Keycloak CAS Protocol ${project.version} + 4.5.13 3.4.1.Final 2.2.1.Final 4.13.2 @@ -35,7 +36,7 @@ UTF-8 1.8 1.8 - 1656367890 + 1658998363 @@ -58,6 +59,12 @@ provided + + org.apache.httpcomponents + httpclient + ${apache.httpcomponents.version} + provided + org.jboss.logging jboss-logging @@ -129,7 +136,7 @@ - javax.xml.bind.api,org.keycloak.keycloak-core,org.keycloak.keycloak-server-spi,org.keycloak.keycloak-server-spi-private,org.keycloak.keycloak-services,org.keycloak.keycloak-saml-core,org.keycloak.keycloak-saml-core-public + javax.xml.bind.api,org.keycloak.keycloak-core,org.keycloak.keycloak-server-spi,org.keycloak.keycloak-server-spi-private,org.keycloak.keycloak-services,org.keycloak.keycloak-saml-core,org.keycloak.keycloak-saml-core-public,org.apache.httpcomponents.httpclient diff --git a/src/main/java/org/keycloak/protocol/cas/CASLoginProtocol.java b/src/main/java/org/keycloak/protocol/cas/CASLoginProtocol.java index 38d32f3..7eb67fc 100644 --- a/src/main/java/org/keycloak/protocol/cas/CASLoginProtocol.java +++ b/src/main/java/org/keycloak/protocol/cas/CASLoginProtocol.java @@ -97,7 +97,7 @@ public Response authenticated(AuthenticationSessionModel authSession, UserSessio String service = authSession.getRedirectUri(); //TODO validate service - OAuth2Code codeData = new OAuth2Code(UUID.randomUUID(), + OAuth2Code codeData = new OAuth2Code(UUID.randomUUID().toString(), Time.currentTime() + userSession.getRealm().getAccessCodeLifespan(), null, null, authSession.getRedirectUri(), null, null); String code = OAuth2CodeParser.persistCode(session, clientSession, codeData);