[keycloak-user] How to set realm tokens units programmatically

Haim Vana haimv at perfectomobile.com
Tue May 24 08:48:56 EDT 2016


I did, however Keycloak converts it back to minutes.
For example 2 * 60 is converted by Keycloak to 2 minutes instead of 2 hours.


From: John D. Ament [mailto:john.d.ament at gmail.com]
Sent: Tuesday, May 24, 2016 3:44 PM
To: Haim Vana <haimv at perfectomobile.com>; keycloak-user at lists.jboss.org
Subject: Re: [keycloak-user] How to set realm tokens units programmatically

I would just expand it out into the proper value, e.g.

2 * 60 * 60

John
On Tue, May 24, 2016 at 8:28 AM Haim Vana <haimv at perfectomobile.com<mailto:haimv at perfectomobile.com>> wrote:
Hi,

When I am setting realm tokens programmatically, for example 'Sso Session Idle Timeout', how can I set its units ?

This is how I am setting the parameter programmatically:
realmRepresentation.setSsoSessionIdleTimeout(120);

However I couldn't find how to set the units from minutes to hours, when I am setting the above it is displayed (and act !) as 2 minutes in the UI.


Any advice will be appreciated.


Thanks,
Haim.


The information contained in this message is proprietary to the sender, protected from disclosure, and may be privileged. The information is intended to be conveyed only to the designated recipient(s) of the message. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, use, distribution or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you.
_______________________________________________
keycloak-user mailing list
keycloak-user at lists.jboss.org<mailto:keycloak-user at lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/keycloak-user
The information contained in this message is proprietary to the sender, protected from disclosure, and may be privileged. The information is intended to be conveyed only to the designated recipient(s) of the message. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, use, distribution or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160524/5ca237f0/attachment.html 


More information about the keycloak-user mailing list