Navigation Menu

Skip to content
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

Open
markcor11 opened this issue Jan 24, 2020 · 0 comments
Open

Comments

@markcor11
Copy link
Contributor

Codewind version: 0.8.0

Description of the enhancement:
Make cwctl sectoken get try the refresh token before trying credentials

Since 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 to cwctl 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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants