[keycloak-user] Keycloak user session time out

Luis Rodríguez Fernández uo67113 at gmail.com
Wed May 30 11:38:10 EDT 2018


Hello Ashutosh,

I must to admit that I do not know if it is possible. Maybe you can find
something useful in the keycloak REST API:
https://www.keycloak.org/docs-api/4.0/rest-api/index.html

Anyway you will need to also keep in mind your application session, unless
it never expires :)

Cheers,

Luis



2018-05-30 8:55 GMT+02:00 Ashutosh Kanthi <ashutosh.kanthi at exfo.com>:

> Hi Luis,
>
> Just to clarify more on my requirement.
>
> I want to show an info, before 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 configured in the keycloak. Is there a possibility to get
> the timeout value through Keycloak API?
>
> Thanks & regards,
> Ashutosh Kanthi
>
> -----Original Message-----
> From: Ashutosh Kanthi
> Sent: Wednesday, May 30, 2018 11:18 AM
> To: 'Luis Rodríguez Fernández'
> Subject: RE: [keycloak-user] Keycloak user session time out
>
> Hi Luis,
>
> Thanks for your response.
>
> As per my scenario, I am more concerned about keycloak session. I trying
> to find out that is there any way to have push mechanism in Keycloak so
> that keycloak would tell the client (idle user) that session timeout is
> reaching near.
>
> Thanks & regards,
> Ashutosh Kanthi
>
> -----Original Message-----
> From: keycloak-user-bounces at lists.jboss.org [mailto:keycloak-user-bounces@
> lists.jboss.org] On Behalf Of Luis Rodríguez Fernández
> Sent: Thursday, May 24, 2018 12:39 PM
> To: keycloak-user at lists.jboss.org
> Subject: Re: [keycloak-user] Keycloak user session time out
>
> Hello Ashutosh,
>
> Perhaps it would be useful if you could describe your scenario a bit more.
> E.g, me I am using the SAML2 java keycloak adapter [1]. In this scenario I
> have two sessions, the Service Provider and the Identity Provider one. The
> Service Provider is an application deployed in apache-tomcat. If you have
> something like this you could think in use [2] and/or [3]. This listeners
> can notifiy you when sessions have been activated/deactivated or attributes
> changed.
>
> Hope it helps,
>
> Luis
>
>
> [1] https://www.keycloak.org/docs/latest/securing_apps/index.html#saml-2
> [2]
> https://tomcat.apache.org/tomcat-9.0-doc/servletapi/javax/servlet/http/
> HttpSessionAttributeListener.html
> [3]
> https://tomcat.apache.org/tomcat-9.0-doc/servletapi/javax/servlet/http/
> HttpSessionActivationListener.html
>
>
>
>
>
>
> 2018-05-23 14:11 GMT+02:00 Ariel Carrera <carreraariel at gmail.com>:
> >
> > Maybe you can do it modifying keycloak’s adapter or using with sse,
> browser
> > notifications or phone notifications (android, iOS...)
> >
> > El El mié, 23 may. 2018 a las 08:40, Ashutosh Kanthi <
> > ashutosh.kanthi at exfo.com> escribió:
> >
> > > Hi,
> > >
> > > We want to implement one functionality with regard to session
> > > timeout in keycloak i.e. if session timeout is reaching near, then
> > > user should be notified of the same.
> > > Does anyone know whether it is possible to do this in Keycloak? And
> > > if
> is
> > > possible then how to do this?
> > >
> > > Thanks & regards,
> > >
> > > Ashutosh Kanthi
> > > _______________________________________________
> > > keycloak-user mailing list
> > > keycloak-user at lists.jboss.org
> > > https://lists.jboss.org/mailman/listinfo/keycloak-user
> > >
> > --
> > Ariel Carrera
> > _______________________________________________
> > keycloak-user mailing list
> > keycloak-user at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/keycloak-user
>
>
>
>
> --
>
> "Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better."
>
> - Samuel Beckett
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>



-- 

"Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better."

- Samuel Beckett


More information about the keycloak-user mailing list