Menu

#461 Refresh token and timeouts

Sign-on
open
Zhang Ze
None
5
2022-09-12
2022-02-22
Kim Hansen
No

When logging into IBM i you can retrieve a token using the ProfileTokenCredential that can be used for subsequent calls which is really great, so thans for that :-)

What I can't figure out is:

  1. Is it possible to programmatically change the default timeout of 60 minutes to something individually based on some settings?
  2. Is it possible to create a refresh token (like in Node.js etc where you can get both an access token and a refresh token)?
  3. Is it possible to create a one-time token referencing an existing token that can be parsed to another service that can then verify if the user has a valid login (but without being able to use the one-time token for actually logging in)?

Discussion

  • John Eberhard

    John Eberhard - 2022-07-06
    • assigned_to: Zhang Ze
     
  • Zhang Ze

    Zhang Ze - 2022-09-12
    1. Yes, ProfileTokenCredential.setTimeoutInterval(int) in second.
    2. Yes, ProfileTokenCredential.refrsh(), ProfileTokenCredential.refresh (type, timeoutinterval)
    3. existing ProfileTokenCredential can be refresh (TYPE_SINGLE_USE, timeoutinterval)
     

Log in to post a comment.

MongoDB Logo MongoDB