Many thanks!
From: Stefan Guilhen [mailto:sguilhen@redhat.com]
Sent: 15 January 2019 13:22
To: Alex Chatziparaskewas <alex.chatziparaskewas(a)trapezegroup.com>
Cc: keycloak-dev(a)lists.jboss.org
Subject: Re: [keycloak-dev] Session Expiry & Remember Me
Yes, you are absolutely right, that expression should be using the expiredRememberMe value
in that spot. I'll work on the fix.
Best regards,
Stefan
On Tue, Jan 15, 2019 at 8:33 AM Alex Chatziparaskewas
<alex.chatziparaskewas@trapezegroup.com<mailto:alex.chatziparaskewas@trapezegroup.com>>
wrote:
Hi All,
I am trying to get the remember me functionality running having the problem that my
sessions are expired by keycloak - in my eyes - prematurely. I started digging through
keycloak code and stumbled over the following:
class UserSessionPredicate, method 'test':
...
if (entity.isRememberMe()) {
if (expiredRememberMe != null && expiredRefreshRememberMe != null
&& entity.getStarted() > ###expiredRefreshRememberMe### &&
entity.getLastSessionRefresh() > expiredRefreshRememberMe) {
return false;
}
}
else {
if (expired != null && expiredRefresh != null &&
entity.getStarted() > expired && entity.getLastSessionRefresh() >
expiredRefresh) {
return false;
}
}
...
The marked (###) 'expiredRefreshRememberMe' in the second if statement, should
that not be 'expiredRememberMe'?
Thanks & Regards,
Alex
_______________________________________________
keycloak-dev mailing list
keycloak-dev@lists.jboss.org<mailto:keycloak-dev@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/keycloak-dev
--
STEFAN GUILHEN
PRINCIPAL SOFTWARE ENGINEER
Red
Hat<https://www.redhat.com/>
sguilhen@redhat.com<mailto:sguilhen@redhat.com> M:
+55-11-98117-7332<tel:+55-11-98117-7332>
[
https://www.redhat.com/files/brand/email/sig-redhat.png]<https://red.h...
@RedHat<https://twitter.com/redhat> Red
Hat<https://www.linkedin.com/company/red-hat> Red
Hat<https://www.facebook.com/RedHatInc>