Skip to content

400 Bad Request when passing the --duration flag #42

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

Open
PauloGDPeixoto opened this issue Nov 3, 2022 · 2 comments
Open

400 Bad Request when passing the --duration flag #42

PauloGDPeixoto opened this issue Nov 3, 2022 · 2 comments

Comments

@PauloGDPeixoto
Copy link

I consistently get a 400 Bad Request from the application when I pass the --duration flag, no matter the value or units (tried "h" and "m").
Without the --duration flag it works fine.

@joshdk
Copy link
Owner

joshdk commented Dec 20, 2022

👋🏻 Hello @PauloGDPeixoto

Thank you for trying aws-console! Could you please add some details regarding:

  1. The output of aws-console --version.
  2. The full command you are running and resulting output.
  3. Which exact type of IAM principal (user/role/etc) you are attempting to generate a console login url for.

Thank you so much, cheers!

@PauloGDPeixoto
Copy link
Author

PauloGDPeixoto commented Dec 20, 2022

Hi, thanks for replying!
Here you go:
$ aws-console --version
homepage: https://github.com/joshdk/aws-auth
author: Josh Komoroske
license: MIT

The full command (and error message):
$ aws-console aws-development --duration 1h
aws-console: request failed: 400 Bad Request

I'm logging in as a federated user with a role, I don't know if this makes sense to you, I can try to elaborate further, if needed.

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

No branches or pull requests

2 participants