[keycloak-user] It's possible to check if an user have an active/valid session through REST API?

Bruno Oliveira bruno at abstractj.org
Wed Oct 26 04:42:35 EDT 2016


Hi Max, I'm adding the ML back.

Unless I'm mistaken, I don't think this is supported today.

On 2016-10-25, max.catarino at rps.com.br wrote:
>
>
> Hello Bruno,
>
> Thank you for your repply.
> The http://www.keycloak.org/docs/rest-api/#_get_user_sessions_for_client
> [2] endpoint returns an UserSessionRepresentation. As I said, there is
> no information about the session is active or not.
> The http://www.keycloak.org/docs/rest-api/#_get_client_session_stats [3]
> endpont returns a session count only.
>
> I looking for a endpoint that returns the status of the user session,
> active/valid (after login), inactive/invalid (after logout, expired).
>
> Best regards.
>
> Maximiliano
>
> Em 24.10.2016 17:01, Bruno Oliveira escreveu:
>
> > Hi Max, I'm not sure which information you want, but you can try to look
> > at these endpoints:
> >
> > * http://www.keycloak.org/docs/rest-api/#_get_user_sessions_for_client [2]
> > * http://www.keycloak.org/docs/rest-api/#_get_client_session_stats [3]
> >
> > On 2016-10-24, max.catarino at rps.com.br wrote:
> >
> >> It's possible to check if an user have an active/valid session through
> >> REST API?
> >>
> >> I saw the UserSessionRepresentation returned by
> >> Keycloak.realm("realmId").users().get("userId").getUserSessions(). But
> >> UserSessionRepresentation do not have the information I want.
> >>
> >> Best regards
> >>
> >> Maximiliano
> >>
> >> _______________________________________________
> >> keycloak-user mailing list
> >> keycloak-user at lists.jboss.org
> >> https://lists.jboss.org/mailman/listinfo/keycloak-user [1]
> >
> > --
> >
> > abstractj
> > PGP: 0x84DC9914
>
>
>
> Links:
> ------
> [1] https://lists.jboss.org/mailman/listinfo/keycloak-user
> [2] http://www.keycloak.org/docs/rest-api/#_get_user_sessions_for_client
> [3] http://www.keycloak.org/docs/rest-api/#_get_client_session_stats

--

abstractj
PGP: 0x84DC9914


More information about the keycloak-user mailing list