Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS Toolkit regularly logging out #3549

Closed
aderchox opened this issue Jun 9, 2023 · 6 comments
Closed

AWS Toolkit regularly logging out #3549

aderchox opened this issue Jun 9, 2023 · 6 comments
Labels
auth-credentials authentication, authorization, credentials, AWS Builder ID, sso duplicate This issue or pull request already exists. Closing issue to avoid duplicate efforts. needs-response Waiting on reply from issue/PR author.

Comments

@aderchox
Copy link

aderchox commented Jun 9, 2023

Problem

Very regularly I have to re-connect my AWS Builder ID
Is this by design / some intended security measure, or it should not happen?

Steps to reproduce the issue

I don't know how to reproduce this because I don't see a clear pattern, but it occurs to me that it happens when I've been idle for some time and when I've not used it for a certain period of time (e.g. a week).

Expected behavior

When I log in once, it must remain logged in unless I log out myself?

System details (run the AWS: About Toolkit command)

  • OS: Win10 22H2 19045.2965
  • Visual Studio Code version: 1.78.2 (user setup)
  • AWS Toolkit version: 1.74.0
@aderchox aderchox added the bug We can reproduce the issue and confirmed it is a bug. label Jun 9, 2023
@justinmk3
Copy link
Contributor

justinmk3 commented Jun 9, 2023

  • AWS Toolkit version: 1.74.0

The latest version of AWS Toolkit is 1.76, which has improvements in this area. Is there a reason you're using 1.74?

I have to re-connect my AWS Builder ID ... a certain period of time (e.g. a week).

AWS Builder Id requires re-authentication after about 7 days. This is not controllable by AWS Toolkit.

@justinmk3 justinmk3 added needs-response Waiting on reply from issue/PR author. auth-credentials authentication, authorization, credentials, AWS Builder ID, sso and removed bug We can reproduce the issue and confirmed it is a bug. labels Jun 9, 2023
@aderchox
Copy link
Author

aderchox commented Jun 9, 2023

No, I should've updated first, there's no reason, I just missed the update.
I've updated now and I will tell here if it happens again. Thanks.

@justinmk3
Copy link
Contributor

Merging this with #3614

@justinmk3 justinmk3 added the duplicate This issue or pull request already exists. Closing issue to avoid duplicate efforts. label Jun 26, 2023
@lkolchin
Copy link

lkolchin commented Jul 8, 2023

Why is this issue closed?
Still happens on 1.79

@mtariqsajid
Copy link

  • AWS Toolkit version: 1.74.0

The latest version of AWS Toolkit is 1.76, which has improvements in this area. Is there a reason you're using 1.74?

I have to re-connect my AWS Builder ID ... a certain period of time (e.g. a week).

AWS Builder Id requires re-authentication after about 7 days. This is not controllable by AWS Toolkit.

is there a option to refresh it automatically. because i have go through the whole process every time. maybe plugin show notify user when expire ?

@justinmk3
Copy link
Contributor

justinmk3 commented Jul 19, 2023

Why is this issue closed?

Because the same topic is tracked in #3614

AWS Builder Id requires re-authentication after about 7 days. This is not controllable by AWS Toolkit.

is there a option to refresh it automatically. because i have go through the whole process every time. maybe plugin show notify user when expire ?

It's a hard limit on the service-side. AWS Toolkit can't do anything to extend or "refresh" the limit beyond 7 days.

We are working with the AWS Builder Id team to extend the limit and will update #3614 when we have more information.

Update: AWS Builder Id session maximum is now 30 days, instead of 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth-credentials authentication, authorization, credentials, AWS Builder ID, sso duplicate This issue or pull request already exists. Closing issue to avoid duplicate efforts. needs-response Waiting on reply from issue/PR author.
Projects
None yet
Development

No branches or pull requests

4 participants