This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
Make cwctl sectoken get
try the refresh token before trying credentials
#1870
Labels
Codewind version: 0.8.0
Description of the enhancement:
Make
cwctl sectoken get
try the refresh token before trying credentialsSince CWCTL already knows and has a recent refresh-token, it would improve the user experience by allowing cwctl to use this refresh-token when requesting an access-token BEFORE using attempting to use the username:password combo from the keychain.
Proposed solution:
Refresh is currently provided by
cwctl sectoken refresh
however that means the consumer needs to hold the refresh token. Propose a modification tocwctl sectoken get
that first tries the refresh from the keychain which was generated on the last successful login, if that fails, then it should try the current username:password approach.The text was updated successfully, but these errors were encountered: