PredixDev / predix-rest-client

Other
7 stars 16 forks source link

is there autorefresh of the secure client token based on expiry #8

Open alishah730 opened 7 years ago

alishah730 commented 7 years ago

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

swapnavad commented 7 years ago

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.