NOTE: Trivore ID Documentation has moved to https://trivoreid.com
The content on this site IS OUT OF DATE!
This space has been archived!
Please go ahead to the new site!
Token life time discussion
Permalink: https://doc.oneportal.fi/x/LoIW
There has been and still is discussion on how long lifetime an ID token and access token should have.
There is no single answer. Below we have collected some links on the subject.
https://www.oauth.com/oauth2-servers/access-tokens/access-token-lifetime/
For better agility, we recommend to start with a relatively short token lifetime, like 20 minutes. Then, when necessary, use refresh token to regain access to the resources. Shall your application require something different, then you just need to adjust.
If later at any time there is reason to revoke a token, this takes effect rather quickly. After such revocation, user is asked to sign-in normally. That is the only action needed,
Using very long, like a year long token lifetimes might cause nasty surprises.