The unit is only used in the UI. It automatically guesses the unit based
from the time.
On 24 May 2016 at 14:53, Haim Vana <haimv(a)perfectomobile.com> wrote:
Great – thanks a lot J
*From:* John D. Ament [mailto:john.d.ament@gmail.com]
*Sent:* Tuesday, May 24, 2016 3:51 PM
*To:* Haim Vana <haimv(a)perfectomobile.com>; keycloak-user(a)lists.jboss.org
*Subject:* Re: [keycloak-user] How to set realm tokens units
programmatically
The value passed in is in seconds. I just checked against what the UI
sends to the backend. That's why my example used 2 * 60 * 60 (7200 seconds
= 2 hours)
John
On Tue, May 24, 2016 at 8:50 AM Haim Vana <haimv(a)perfectomobile.com>
wrote:
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@gmail.com]
*Sent:* Tuesday, May 24, 2016 3:44 PM
*To:* Haim Vana <haimv(a)perfectomobile.com>; keycloak-user(a)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(a)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(a)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.
_______________________________________________
keycloak-user mailing list
keycloak-user(a)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.
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user