Open leeaee opened 5 years ago
@leeaee
Session token expiration is always the same as session cookie expiration, which is specified by session.ttl
configuration.
You can also let actframework export a header specify the session expiration time by
session.outputExpiration=true
In which case you have an new header Act-Session-Expires
(which can be changed via header.session.expiration
) indicate the expiration time of the token:
you don't need a specific refresh_token endpoint, simple replace your token with latest response to any request before the expiration time.
Act-aaa now return a token and when request to act service, service will response a new token in response header. Could act aaa support return a access_token and refresh_token after login. then the client could get new token by expire time instend of update the header access token everytime.
the response for access_token and refresh_token could like this: