[keycloak-user] Remember me doesn't work after keycloak restart

Edgar Vonk - Info.nl Edgar at info.nl
Mon Oct 3 06:56:34 EDT 2016


Ah thanks.

For may understanding: why does the keycloak-server.json still have this setting as the default (by looking at the source code)?

"userSessionPersister": {
    "provider": "jpa"
},

And also I do still see a JpaUserSessionPersisterProvider class in the source code. Guess this is not used anymore?

cheers


On 03 Oct 2016, at 12:03, Stian Thorgersen <sthorger at redhat.com<mailto:sthorger at redhat.com>> wrote:

JPA provider was removed a long time ago.

On 3 October 2016 at 11:21, Edgar Vonk - Info.nl<http://info.nl> <Edgar at info.nl<mailto:Edgar at info.nl>> wrote:
Hi Stian,

How does this relate to a previous remark you made regarding persisting user sessions:
http://lists.jboss.org/pipermail/keycloak-user/2015-April/001921.html

Also I do see Java code in Keycloak related to persisting user sessions and there is the USER_SESSIONS database table?

With the correct settings in keycloak-server.json with caching disabled should Keycloak persist user sessions?

cheers

Edgar



User sessions are not persisted which is why users have to re-authenticate
after server is restarted. To make sessions work cross server restarts you
need a cluster with multiple server nodes and increase owners for the user
session cache.

On 28 September 2016 at 09:44, Mariusz Chruscielewski - Info.nl<http://info.nl/> <
mariusz at info.nl<https://lists.jboss.org/mailman/listinfo/keycloak-user>> wrote:

> Hi. Is it possible to persist sessions after keycloak restart? We are
> using remember me functionality, and after keycloak server is restarted,
> all users have to login again (I’m not sure if this is about session, or
> maybe some other remember-me-session). Is there any way to configure that?
> Thanks in advance.
>
>
>
> Kind Regards,
>
>
>
> Mariusz Chruscielewski





More information about the keycloak-user mailing list