[keycloak-dev] Session Expiry & Remember Me

Stefan Guilhen sguilhen at redhat.com
Thu Jan 17 12:11:52 EST 2019


Alex, I've created a Jira (https://issues.jboss.org/browse/KEYCLOAK-9371)
to track this. PR has been opened and once it is reviewed/merged I will
update the Jira.

On Tue, Jan 15, 2019 at 12:38 PM Alex Chatziparaskewas <
alex.chatziparaskewas at trapezegroup.com> wrote:

> Many thanks!
>
>
>
> *From:* Stefan Guilhen [mailto:sguilhen at redhat.com]
> *Sent:* 15 January 2019 13:22
> *To:* Alex Chatziparaskewas <alex.chatziparaskewas at trapezegroup.com>
> *Cc:* keycloak-dev at 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 at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>
>
>
>
> --
>
> *STEFAN GUILHEN*
>
> PRINCIPAL SOFTWARE ENGINEER
>
> Red Hat <https://www.redhat.com/>
>
> sguilhen at redhat.com    M: +55-11-98117-7332
>
> <https://red.ht/sig>
>
> @RedHat <https://twitter.com/redhat>   Red Hat
> <https://www.linkedin.com/company/red-hat>   Red Hat
> <https://www.facebook.com/RedHatInc>
>


-- 

STEFAN GUILHEN

PRINCIPAL SOFTWARE ENGINEER

Red Hat <https://www.redhat.com/>

sguilhen at redhat.com    M: +55-11-98117-7332
<https://red.ht/sig>
@RedHat <https://twitter.com/redhat>   Red Hat
<https://www.linkedin.com/company/red-hat>   Red Hat
<https://www.facebook.com/RedHatInc>


More information about the keycloak-dev mailing list