<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body ocsi="0" fpstyle="1" bgcolor="#FFFFFF">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi,<br>
thanks for the answer, but i want to know the value of the sessioin timeout (red) and the "isTokenExpired(X)" is for the accessToken value (blue).<br>
<br>
<img><br>
<br>
Is there a possibility to get this value (red) in Java Script ?<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF233634"><font size="2" face="Tahoma" color="#000000"><b>Von:</b> Marek Posolda [mposolda@redhat.com]<br>
<b>Gesendet:</b> Montag, 2. Februar 2015 23:14<br>
<b>Bis:</b> Christoph Machnik; keycloak-user@lists.jboss.org<br>
<b>Betreff:</b> Re: [keycloak-user] Possibility to get the keycloak session timeout value per Java-Script<br>
</font><br>
</div>
<div></div>
<div>
<div class="moz-cite-prefix">Hi, <br>
<br>
on keycloak.js there is function "isTokenExpired()" which can be used to check if token is expired. You can also give it an argument like "isTokenExpired(10)", which will return true if token is expired *or* is going to expire in next 10 seconds. Some more
info in the docs: <a class="moz-txt-link-freetext" href="http://docs.jboss.org/keycloak/docs/1.1.0.Final/userguide/html/ch08.html#javascript-adapter" target="_blank">
http://docs.jboss.org/keycloak/docs/1.1.0.Final/userguide/html/ch08.html#javascript-adapter</a><br>
<br>
Marek<br>
<br>
On 2.2.2015 13:09, Christoph Machnik wrote:<br>
</div>
<blockquote type="cite"><style id="owaParaStyle" type="text/css">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
BODY {direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;}P {margin-top:0;margin-bottom:0;}BODY {scrollbar-base-color:undefined;scrollbar-highlight-color:undefined;scrollbar-darkshadow-color:undefined;scrollbar-track-color:undefined;scrollbar-arrow-color:undefined}</style>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Hi,<br>
<br>
I want to show an info, befoe the session runs in a timeout, so that the user can react and not be logged out. For this i need to read the session timeout that is configuresd in the keycloak admin console. is there a possibility to get the timeout value in
javascript ?<br>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader" target="_blank"></fieldset> <br>
<pre>_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
</blockquote>
<br>
</div>
</div>
</div>
</body>
</html>