GithubHelp home page GithubHelp logo

Even when the computer is in sleep mode, SSO sessions can expire and result in multiple session requests being opened in the browser about aws-sso-cli HOT 7 CLOSED

yasithab avatar yasithab commented on August 15, 2024
Even when the computer is in sleep mode, SSO sessions can expire and result in multiple session requests being opened in the browser

from aws-sso-cli.

Comments (7)

yasithab avatar yasithab commented on August 15, 2024 1

@synfinatic I am closing this issue as it has been resolved in version v2.0.0-beta1. Thank you for your time and effort on this project :)

from aws-sso-cli.

synfinatic avatar synfinatic commented on August 15, 2024

So sounds like you have one or more processes trying to use IAM credentials and you're using $AWS_PROFILE to use them?

Options are:

  1. Don't run processes when you're about to put the computer to sleep.
  2. Use some other option other than$AWS_PROFILE which invokes aws-sso process
  3. Wait until aws-sso v2 is releases which won't do this: #611

from aws-sso-cli.

yasithab avatar yasithab commented on August 15, 2024

@synfinatic I appreciate your prompt response. Although I don't have any specific processes running, I have set up aliases in my ~/.zshrc file which use the aws --profile flag. Typically, I keep the terminal application open without closing it.

Also, I have kube configs with profile flag

aws --profile 01234567890:AdministratorAccess eks update-kubeconfig --region ap-southeast-1 --name kube-cluster --alias development

Is it possible that this is the issue?

Anyway, Yes I can wait till V2.

Thank you very much for your time on this project :)

from aws-sso-cli.

synfinatic avatar synfinatic commented on August 15, 2024

Well, I'm just guessing on the issue. All I can say is that something is calling aws-sso and so it is triggering the auto-login feature. I can't tell you what exactly is doing that on your system for obvious reasons.

As for is aws --profile 01234567890:AdministratorAccess eks ... causing it... well maybe? Would have to look at the contents of you ~/.aws/config file.

from aws-sso-cli.

yasithab-pf avatar yasithab-pf commented on August 15, 2024

@synfinatic Really sorry for the late reply. Please find the content of ~/.aws/config below.

278869163-b376a1e7-8a61-4d3d-9c88-223caf7924f4

from aws-sso-cli.

synfinatic avatar synfinatic commented on August 15, 2024

So does 01234567890:AdministratorAcces from your aws command match one of the profiles in your ~/.aws/config? If so, then yes, that would cause it since as you can see that $AWS_PROFILE is calling aws-sso to fetch the credentials. If they are expired, then it will try to refresh them which causes the browser to open a tab.

from aws-sso-cli.

github-actions avatar github-actions commented on August 15, 2024

This issue is stale because it has been open for 14 days with no response
from the reporter. It will be automatically closed in 14 days from this message.

from aws-sso-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.