aws / aws-toolkit-jetbrains

AWS Toolkit for JetBrains - a plugin for interacting with AWS from JetBrains IDEs
https://plugins.jetbrains.com/plugin/11349-aws-toolkit
Apache License 2.0
748 stars 214 forks source link

AWS SSO Login Failed: Service returned error code AccessDeniedException #4130

Open RogerThat000 opened 7 months ago

RogerThat000 commented 7 months ago

I have admin access to my accounts, and while trying to use the toolkit to start Code Whisperer, I enter the SSO start URL - enter and copy the code and grant allow access but receive the below message

Service returned error code AccessDeniedException (Service: SsoOidc, Status Code: 400, Request ID: 3777729b-a103-4743-bb04-e04df62bb9e0)

AWS ToolKit - has aws credentials set to my Admin profile [XXXaccount_AWSAdministratorAccess] aws_access_key_id=XXXX aws_secret_access_key=XXX aws_session_token=XXX

sso URL - https://XXXX.awsapps.com/start# sso region - us-east-1

We are trying to get code whisperer and Q working on one of our sandbox accounts.

anikoiau commented 1 month ago

Did you find a solution?

RogerThat000 commented 1 month ago

Yes I did - I had to go back to my Org Account and re-add all the users in CodeWhisperer profile and then on sandbox account I re tried the steps and it worked.