We have an open PR for early token refresh but it’s missing integration tests, thus not
yet merged.
On Jan 11, 2016, at 4:23 AM, ha.hamed(a)gmail.com
<hamed(a)web-presence-in-china.com> wrote:
Hi,
I made an app use bearer authentication with Keycloak . I have another app which wants to
use this REST api.
As I know until now, It needs to get token from Keycloak server (I use POST method), then
add this token to the request It needs to send.
But, there's one important issue. This client want to have assess hundreds time each
minute. Is there any tools for Keycloak to help me update the token when it's
required? I mean keep the token for example for 15 minutes (validation time) then renew it
when it's required. I made a statefull class which get configuration and has
getToken() method. Then when the other classes ask for new token, if it expired this
method synchronously will get new one and return it (Direct grant). Is it right? Is there
anything standard inside of the Keycloak lib already?
Best regards,
Hamed
_______________________________________________
keycloak-user mailing list
keycloak-user(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user