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);