You could read the server start time and the unique id of the server.
To get those two values you can issue the following jboss-cli commands:
/:read-attribute(name=uuid)
/core-service=platform-mbean/type=runtime/:read-attribute(name=start-time)
On 12/9/2016 11:17 AM, Mariusz Chruscielewski - Info.nl wrote:
Hi,
Is there a way to check, if Keycloak has been restarted since last visit? Some unique ID
that is created when keycloak starts and doesn't change until you restart keycloak. I
would like to use it to verify if cookie has been created by "this" keycloak
instance, or keycloak instance before restart.
Kind Regards,
Mariusz ChruĊcielewski
software engineer
mariusz@info.nl<mailto:mariusz@info.nl> |
LinkedIn<https://www.linkedin.com/in/mariusz-chruscielewski> | +31 (0)20 530
9113<tel:+31205309113%20>
info.nl <
http://www.info.nl>
Sint Antoniesbreestraat 16 | 1011 HB Amsterdam | +31 (0)20 530
9100<tel:+31205309100>
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user