Skip to content

'aws2 sso login' should not open SSO login page on browser if current security token is still valid #5972

Open

Description

@arvindkgs

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

Activity

  1. added
    feature-request
    needs-triage
    on Feb 23, 2021
  2. self-assigned this
    on Feb 23, 2021
  3. removed
    feature-request
    on Feb 23, 2021
  4. stobrien89 commented on Feb 23, 2021

    @stobrien89
    Member

    Hello again @arvindkgs,

    Thanks for the feature request! I'll make sure this gets passed along to the team.

  5. removed their assignment
    on Feb 23, 2021
  6. added
    feature-request
    and removed
    needs-triage
    on Feb 23, 2021
  7. volphy commented on Sep 30, 2021

    @volphy

    Is it related to:
    #5301
    ?

  8. stobrien89 commented on Oct 5, 2021

    @stobrien89
    Member

    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.

  9. joguSD commented on Feb 16, 2022

    @joguSD
    Contributor

    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.

  10. added
    p3
    on Nov 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestp3sso

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions