Depends what exactly is "Last Access Time for given user using their
access token" ?
Is it last time when they refresh their token with Keycloak server? Then
this option is already available in Keycloak as lastAccessTime attribute
of UserSession. You may need to implement protocolMapper if you want to
add that into the accessToken itself. Otherwise accessToken has just
value "issuedAt", which is time when it was created.
Or do you want time when accessTime was used on sending REST request to
some bearer-only client? Then you can track it by yourself in your app
somehow.
Marek
Dne 9.2.2018 v 14:59 Ganga Lakshmanasamy napsal(a):
Hi,
We are looking for an option to pull last access time for a given user
using their access token. We can't make admin api as it will be from
regular user session. Is there a option to fix that?
Regards,
Ganga Lakshmanasamy
<
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&a...
Virus-free.
www.avg.com
<
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&a...
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user