`aws configure sso`: "Authorization failed. Invalid code." in the browser

0

I continue trying to meticulously follow the docs to get AWS CLI working. However aws configure sso won't work, as when I enter the code it provides - it is never valid.

Enter image description here

Enter image description here

Any ideas?

2 個答案
0

You should be logged in to the correct email account when you do this. Do you use a company VPN to connect to your email account?

profile picture
已回答 10 個月前
  • No, no VPNs. I opened the incognito session in Chrome, logged in using my portal link and Identity Center user that I created. It has both Administrator and PowerUser permissons assigned.

0

Try to check which one is your default browser. If you are executing command in your local system but AWS console can be opened in any restricted environment like Citrix/AVD, in that case generated code will redirect to your default browser in your local system only. In such scenario, if you copy generated URL in restricted environment, then it will not work.

iamAni
已回答 10 個月前
  • I'm logged in in an incognito Chorme session using Identity Center user credentials with Administrator/PowerUser permissons. There I open a new tab and paste the link aws provided. This should work, right?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南