You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
'aws2 sso login' should not open SSO login page on browser if current security token is still valid #5972
Is your feature request related to a problem? Please describe.
I have setup my iTerm2 profile to run 'aws2 sso login' when I open terminal, as I want my terminal to be setup automatically to accept kubectl commands. But each time I get redirected to a browser, even when my temporary credentials and token is currently active.
Describe the solution you'd like
Don't open browser if my temporary credentials are valid and active.
Describe alternatives you've considered
No alternative
Reacted by Andy Ray, Hugh, Simon Weil, tris, Mark Mindenhall, Thayne McCombs, Cody Robbins, Matheus Lozano, Josh Heidenreich, Anthony Affee and 3 more
Yes, I'd say this is related, but not necessarily closely enough related to be considered a duplicate, as this would be a change in the default behavior as opposed to an opt-out like requested in the linked issue.
There is a flag for this in-code. That being said, I don't think this is something we would change the default for but rather provide an opt-out i.e. --no-force-refresh if preserving the current token is preferred.
Activity
stobrien89 commentedon Feb 23, 2021
Hello again @arvindkgs,
Thanks for the feature request! I'll make sure this gets passed along to the team.
volphy commentedon Sep 30, 2021
Is it related to:
#5301
?
stobrien89 commentedon Oct 5, 2021
Hi @volphy,
Yes, I'd say this is related, but not necessarily closely enough related to be considered a duplicate, as this would be a change in the default behavior as opposed to an opt-out like requested in the linked issue.
joguSD commentedon Feb 16, 2022
There is a flag for this in-code. That being said, I don't think this is something we would change the default for but rather provide an opt-out i.e.
--no-force-refreshif preserving the current token is preferred.