From 4160d36bef1ae632bda322c11c839c3026edadb2 Mon Sep 17 00:00:00 2001 From: Kristaps Berzinch Date: Tue, 17 Sep 2024 21:21:45 -0400 Subject: [PATCH] Switch to encoded version --- .../johnjcool/keycloak/broker/cas/CasIdentityProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/github/johnjcool/keycloak/broker/cas/CasIdentityProvider.java b/src/main/java/io/github/johnjcool/keycloak/broker/cas/CasIdentityProvider.java index 0c84439..125b497 100644 --- a/src/main/java/io/github/johnjcool/keycloak/broker/cas/CasIdentityProvider.java +++ b/src/main/java/io/github/johnjcool/keycloak/broker/cas/CasIdentityProvider.java @@ -68,7 +68,7 @@ public Response performLogin(final AuthenticationRequest request) { return Response.seeOther(authenticationUrl) .cookie( new NewCookie.Builder("__Host-cas_state") - .value(request.getState().getDecodedState()) + .value(request.getState().getEncoded()) .httpOnly(true) .secure(true) .path("/")