Skip to content

"Invalid client" on sign in to AWS Builder ID #3667

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

Closed
JCBSLMN opened this issue Jul 19, 2023 · 5 comments
Closed

"Invalid client" on sign in to AWS Builder ID #3667

JCBSLMN opened this issue Jul 19, 2023 · 5 comments
Labels
auth-credentials authentication, authorization, credentials, AWS Builder ID, sso bug We can reproduce the issue and confirmed it is a bug. codewhisperer needs-response Waiting on reply from issue/PR author.

Comments

@JCBSLMN
Copy link

JCBSLMN commented Jul 19, 2023

Problem

cannot sign in using AWS builder ID for code whisperer

Steps to reproduce the issue

  1. Go to vscode
  2. Click on code whisperer
  3. copy code and enter in to browser
  4. sign into AWS builder ID

Screen Shot 2023-07-20 at 9 09 32 am

Expected behavior

sign in to AWS builder ID and let me use code whisperer?

System details (run the AWS: About Toolkit command)

  • OS: Mac Big Sur
  • Visual Studio Code version: 1.80.1
  • AWS Toolkit version: 1.81.0
@JCBSLMN JCBSLMN added the bug We can reproduce the issue and confirmed it is a bug. label Jul 19, 2023
@justinmk3 justinmk3 added codewhisperer auth-credentials authentication, authorization, credentials, AWS Builder ID, sso labels Jul 20, 2023
@justinmk3
Copy link
Contributor

If you had previously tried to use AWS Builder Id awhile ago (several months), it's possible this is because of stale state. For troubleshooting, try moving/deleting the ~/.aws/sso/ folder (if it exists) in your home directory. Then restart vscode and try again.

If that doesn't work, can you provide the Toolkit logs (check that private info is removed)?

  1. In VSCode settings, ensure that "aws log level" is "debug".
  2. Perform the steps to reproduce the issue.
  3. Use the AWS: View Toolkit Logs command to get the logs.

Related:

@justinmk3 justinmk3 added the needs-response Waiting on reply from issue/PR author. label Jul 20, 2023
@justinmk3 justinmk3 changed the title Cannot authorise "Invalid client" on sign in to AWS Builder ID Jul 24, 2023
@djschleen
Copy link

Had the same issue and the solution @justinmk3 stated about removing the ~/.aws/sso folder worked.

@jwalsh2me
Copy link

I also had this same issue and was resolved by removing the ~/.aws/sso folder.

@JCBSLMN
Copy link
Author

JCBSLMN commented Aug 15, 2023

thank you gentlemen! 👏

@JCBSLMN JCBSLMN closed this as completed Aug 15, 2023
@JCBSLMN
Copy link
Author

JCBSLMN commented Aug 15, 2023

thanks @justinmk3 @djschleen @jwalsh2me
removing the aws/sso folder worked.

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 bug We can reproduce the issue and confirmed it is a bug. codewhisperer needs-response Waiting on reply from issue/PR author.
Projects
None yet
Development

No branches or pull requests

4 participants