You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using aws-cli's login --no-browser the CLI output also includes the URL with the code so you do a single copy and paste. E.g.:
❯ aws sso login --profile my-profile --no-browser
Browser will not be automatically opened.
Please visit the following URL:
https://device.sso.eu-west-1.amazonaws.com/
Then enter the code:
HJRZ-HIWR
**Alternatively, you may visit the following URL which will autofill the code upon loading:
https://device.sso.eu-west-1.amazonaws.com/?user_code=HJRZ-HIWR**
It would be nice to have something like that here when using the --headless option. Currently outputs like this:
❯ aws-sso-util login --force-refresh --headless
Logging in https://d-12345678e9.awsapps.com/start
Identity Center login required.
Open the following URL in a browser:
https://device.sso.eu-west-1.amazonaws.com/
Then enter the code:
HJRZ-HIWR
Also, apologies for using this for an added question. If we don't want to use the --headless, is there a way to choose the browser in MacOS other than the default?
The text was updated successfully, but these errors were encountered:
I see the same issue, also on 4.32.0. Release notes from that version indicate it should contain the new messages from #92, but I still see the same messages that @oviliz has above with no mention of the autofill urls.
❯ aws-sso-util login --force-refresh
Logging in https://foo.awsapps.com/start
Login with IAM Identity Center required.
Attempting to open the authorization page in your default browser.
If the browser does not open or you wish to use a different device to
authorize this request, open the following URL:
https://device.sso.us-east-1.amazonaws.com/
Then enter the code:
RSJB-PMFH
❯ aws-sso-util login --force-refresh --headless
Logging in https://foo.awsapps.com/start
Identity Center login required.
Open the following URL in a browser:
https://device.sso.us-east-1.amazonaws.com/
Then enter the code:
GPLD-LRBB
When using aws-cli's
login --no-browser
the CLI output also includes the URL with the code so you do a single copy and paste. E.g.:It would be nice to have something like that here when using the --headless option. Currently outputs like this:
Also, apologies for using this for an added question. If we don't want to use the --headless, is there a way to choose the browser in MacOS other than the default?
The text was updated successfully, but these errors were encountered: