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 Codewhisperer keeps asking me to sign in again every week #3614

Closed
samdenty opened this issue Jun 25, 2023 · 15 comments
Closed

AWS Codewhisperer keeps asking me to sign in again every week #3614

samdenty opened this issue Jun 25, 2023 · 15 comments
Labels
auth-credentials authentication, authorization, credentials, AWS Builder ID, sso blocked waiting on third party / upstream / external bug We can reproduce the issue and confirmed it is a bug. codewhisperer

Comments

@samdenty
Copy link

samdenty commented Jun 25, 2023

Problem

I'm trying to use AWS Codewhisperer but it keeps asking me to re-sign in every couple of days / week. Each time I sign in I select 'This is a trusted device', to no avail

Expected behavior

Codewhisperer should stay signed in forever

@samdenty samdenty added the bug We can reproduce the issue and confirmed it is a bug. label Jun 25, 2023
@samdenty samdenty changed the title AWS Codewhisperer keeps asking for sign in each week AWS Codewhisperer keeps asking me to sign in again every week Jun 25, 2023
@QixuanAI
Copy link

the same problem, and not only every week, but also every time I open another VS Code window or change another PC.

@justinmk3 justinmk3 added auth-credentials authentication, authorization, credentials, AWS Builder ID, sso codewhisperer labels Jun 26, 2023
@justinmk3
Copy link
Contributor

7 days is currently the AWS Builder id service-side limit (except for "Identity Center" SSO which is controlled by your admin).

See also #3248

@justinmk3 justinmk3 added the blocked waiting on third party / upstream / external label Jun 26, 2023
@samdenty
Copy link
Author

Is there any resolution to this? this is probably going to make me uninstall aws codewhisperer even though i like it and use a competitor

@nawlbergs
Copy link

can I not use my IAM credentials? its currently using both or something... IAM for all the toolkit explorer and this AWS Builder ID junk for code whisperer...

@justinmk3
Copy link
Contributor

justinmk3 commented Jul 17, 2023

can I not use my IAM credentials?

If the credentials are SSO (IAM Identity Center) credentials, then yes:
https://docs.aws.amazon.com/codewhisperer/latest/userguide/as-whisper-admin.html#codewhisperer-setup-enterprise-admin-authorize

But otherwise, no.

@srinz9
Copy link

srinz9 commented Jul 18, 2023

CodeWhisperer supports (1) BuilderID (Individual tier) and (2) Identity Center (IdC) (Professional tier)
BuilderID has a 7-day expiry and IdC can be configured to upto 7-day session

In the recent extension updates, we fixed cases where logouts happen sooner.

We are also working on extending this - will share an update when ready.

@braincomb
Copy link

👍

Using BuilderID and the logouts seem to happen sooner than 7-days.

The whole process is highly inconvenient and 7-days still seems too short. The whole process is like this:

  1. Tell extension to reconnect with AWS.
  2. Copy code.
  3. Go to page and paste code. At this point this should have been the end of it, but no...
  4. Go to AWS Builder ID page.
  5. Click on "Already have AWS Builder ID. Sign In".
  6. Click Next.
  7. Finally be able to enter password and Sign In.
  8. But wait, have to click Allow again.

What gives?

@soup-bowl
Copy link

If the BuilderID timeout is being caused by the source API, or at least another method unrelated to this vscode plugin, could there be a pointer to what issue is tracking it? A 7 day expiry seems to be a security-over-usability design and would like to feedback on that.

@justinmk3
Copy link
Contributor

There is no public tracking issue. We will update here when we have a meaningful update to share.

@justinmk3
Copy link
Contributor

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

@samdenty samdenty closed this as completed Sep 1, 2023
@justinmk3 justinmk3 pinned this issue Sep 12, 2023
@justinmk3
Copy link
Contributor

Update:

  • Identity Center (IdC, CodeWhisperer "Professional tier") now supports a session maximum of 90 days (configurable by the IdC administrator).
    • This is unrelated to AWS Builder Id, which has a session maximum of 30 days.

@muchisx
Copy link

muchisx commented Sep 30, 2023

hey @justinmk3 I do not see a setting to change the frequency for the session expiration.

I'm looking in this page and all submenus
https://profile.aws.amazon.com/#/profile/details

Am I looking in the wrong place?

@justinmk3
Copy link
Contributor

@muchisx https://profile.aws.amazon.com/#/profile/details is for AWS Builder Id, which has a max of 30 days, it's not configurable.

IdC (CodeWhisperer "Professional tier") is unrelated to Builder Id.

@doublehelix

This comment was marked as resolved.

@justinmk3 justinmk3 reopened this Jan 31, 2024
@justinmk3

This comment was marked as resolved.

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 blocked waiting on third party / upstream / external bug We can reproduce the issue and confirmed it is a bug. codewhisperer
Projects
None yet
Development

No branches or pull requests

9 participants