Skip to content

Add suggestion to use cross-device workflow to 'aws login' and 'aws sso login'#10138

Open
ashovlin wants to merge 2 commits intoaws:v2from
ashovlin:shovlia/sso-cross-device-message
Open

Add suggestion to use cross-device workflow to 'aws login' and 'aws sso login'#10138
ashovlin wants to merge 2 commits intoaws:v2from
ashovlin:shovlia/sso-cross-device-message

Conversation

@ashovlin
Copy link
Member

Issue #, if available: CLI-7846

Description of changes: This adds a suggestion to use the cross-device flag for aws login and aws sso login for users who initially don't include it, but are unable to open the redirect URL on the same device.

Before:

$ aws sso login --profile sso-admin
Attempting to open your default browser.
If the browser does not open, open the following URL:

<url>

After:

$ aws sso login --profile sso-admin
Attempting to open your default browser. If the browser does not open, open the following URL.
If you are unable to open the URL on this device, run this command again with the '--use-device-code' option.

<url>

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ashovlin ashovlin changed the title Add suggestion to use cross-device workflow too 'aws login' and 'aws sso login' Add suggestion to use cross-device workflow to 'aws login' and 'aws sso login' Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant