PredixDev/predix-rest-client

is there autorefresh of the secure client token based on expiry

Opened this issue · 1 comments

while calling time series APIs how we will manage token expiry and refresh

Yes, it is possible to manage token expires and refresh. It is not implemented as a functionality on rest client. Following are the steps :
1.Check the token expiry ( call to check-token or using the Fast token utility)

2.If the token is near or expired then invoke a call to UAA using the grant_type of refresh_token to fetch a refresh token.