From 2e8d513c6886debce6153bd94fc5521e899efaa0 Mon Sep 17 00:00:00 2001
From: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Date: Thu, 2 Mar 2023 08:48:41 +0000
Subject: [PATCH] Update to Keycloak 21.0.1
---
pom.xml | 4 ++--
src/main/java/org/keycloak/protocol/cas/CASLoginProtocol.java | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/pom.xml b/pom.xml
index f520ef0..1d1efda 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,7 +22,7 @@
org.keycloak
keycloak-protocol-cas
- 21.0.0
+ 21.0.1
Keycloak CAS Protocol
@@ -36,7 +36,7 @@
UTF-8
1.8
1.8
- 1677228457
+ 1677746918
diff --git a/src/main/java/org/keycloak/protocol/cas/CASLoginProtocol.java b/src/main/java/org/keycloak/protocol/cas/CASLoginProtocol.java
index 8f4cf5e..0317f0d 100644
--- a/src/main/java/org/keycloak/protocol/cas/CASLoginProtocol.java
+++ b/src/main/java/org/keycloak/protocol/cas/CASLoginProtocol.java
@@ -100,7 +100,8 @@ public Response authenticated(AuthenticationSessionModel authSession, UserSessio
OAuth2Code codeData = new OAuth2Code(UUID.randomUUID().toString(),
Time.currentTime() + userSession.getRealm().getAccessCodeLifespan(),
- null, null, authSession.getRedirectUri(), null, null);
+ null, null, authSession.getRedirectUri(), null, null,
+ userSession.getId());
String code = OAuth2CodeParser.persistCode(session, clientSession, codeData);
KeycloakUriBuilder uriBuilder = KeycloakUriBuilder.fromUri(service);