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("/")