Skip to content
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

aws-vault login with --stdout opens the browser for authorization #868

Closed
3 tasks done
anthonyvallee opened this issue Feb 21, 2022 · 0 comments · Fixed by #892
Closed
3 tasks done

aws-vault login with --stdout opens the browser for authorization #868

anthonyvallee opened this issue Feb 21, 2022 · 0 comments · Fixed by #892

Comments

@anthonyvallee
Copy link

  • I am using the latest release of AWS Vault
  • I have provided my .aws/config (redacted if necessary)
  • I have provided the debug output using aws-vault --debug (redacted if necessary)

Description

Using aws-vault login with --stdout opens the browser. I would expect the SSO authorization page URL to be printed to stdout instead of opening the browser.

Details

version

aws-vault v6.5.0

.aws/config

[profile <profile>]
sso_start_url = https://<organization>.awsapps.com/start
sso_region = us-east-1
sso_account_id = <accountId>
sso_role_name = <roleName>
region = us-east-1

aws-vault --debug output

$ aws-vault login --stdout --debug <profile>
2022/02/20 21:06:02 aws-vault v6.5.0
2022/02/20 21:06:02 [keyring] Considering backends: [secret-service]
2022/02/20 21:06:02 Loading config file /home/<user>/.aws/config
2022/02/20 21:06:02 Parsing config file home/<user>/.aws/config
2022/02/20 21:06:02 Profile 'default' missing in config file
2022/02/20 21:06:02 Created new OIDC client (expires at: 2022-05-21 22:06:02 -0400 EDT)
2022/02/20 21:06:03 Created OIDC device code for https://<organization>.awsapps.com/start (expires in: 600s)
2022/02/20 21:06:03 Opening SSO authorization page in browser
Opening the SSO authorization page in your default browser (use Ctrl-C to abort)
https://device.sso.us-east-1.amazonaws.com/?user_code=<user_code>
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 a pull request may close this issue.

1 participant