From f2c1d5ba4da44582693e14a9917632d30035caa9 Mon Sep 17 00:00:00 2001 From: Jakub Malinowski Date: Wed, 30 Oct 2024 07:41:18 +0100 Subject: [PATCH] #129 Client session note service ticket fix --- .../protocol/cas/endpoints/AbstractValidateEndpoint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/keycloak/protocol/cas/endpoints/AbstractValidateEndpoint.java b/src/main/java/org/keycloak/protocol/cas/endpoints/AbstractValidateEndpoint.java index e166bb0..00b80db 100644 --- a/src/main/java/org/keycloak/protocol/cas/endpoints/AbstractValidateEndpoint.java +++ b/src/main/java/org/keycloak/protocol/cas/endpoints/AbstractValidateEndpoint.java @@ -151,7 +151,7 @@ protected void checkTicket(String ticket, String prefix, boolean requireReauth) throw new CASValidationException(CASErrorCode.INVALID_TICKET, "Code is expired", Response.Status.BAD_REQUEST); } - clientSession.setNote(prefix, ticket); + clientSession.setNote(CASLoginProtocol.SESSION_SERVICE_TICKET, ticket); if (requireReauth && AuthenticationManager.isSSOAuthentication(clientSession)) { event.error(Errors.SESSION_EXPIRED);