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

OpenId connect support to generate temporary credentials #4045

Closed
forty opened this issue Apr 3, 2019 · 4 comments
Closed

OpenId connect support to generate temporary credentials #4045

forty opened this issue Apr 3, 2019 · 4 comments
Assignees
Labels
duplicate This issue is a duplicate. v2

Comments

@forty
Copy link

forty commented Apr 3, 2019

Hello,
I feel a feature like https://github.com/openstandia/aws-cli-oidc would be a great addition to AWS cli (I haven't tried this project yet but we do something similar, and the code looks good).
It allows the generation of temporary AWS credential by simply opening an URL in the browser using oidc. This is a great feature, and as this is security sensitive, I would rather have it in the official client than on a random client on GitHub.
Syntax idea:
aws oidc get-temporary-credentials --config=configfile.json (this opens the browser and output the result of AssumeRoleXXXX)
What do you think?

@justnance justnance self-assigned this Apr 25, 2019
@justnance justnance added guidance Question that needs advice or information. closing-soon This issue will automatically close in 4 days unless further comments are made. labels Apr 25, 2019
@justnance
Copy link

@forty - Thanks for your post. Looks like you might be interested in checking out AWS Security Token Service (STS). There is a command you can use that returns a set of temporary credentials for an AWS account or IAM user.:

aws sts get-session-token

You can also control the output from the CLI to json or text:

$ aws sts get-session-token --output json > output.json

$ aws sts get-session-token --output text > output.txt

Please let us know if this would work for your use case.

@no-response
Copy link

no-response bot commented May 2, 2019

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@no-response no-response bot closed this as completed May 2, 2019
@forty
Copy link
Author

forty commented May 11, 2019

@justnance Sorry for the late answer. No, that would not work for me, my goal is to login using oidc/saml, which get-session-token doesn't allow.
Thanks

@no-response no-response bot removed the closing-soon This issue will automatically close in 4 days unless further comments are made. label May 11, 2019
@no-response no-response bot reopened this May 11, 2019
@justnance justnance removed the guidance Question that needs advice or information. label May 13, 2019
@justnance justnance added duplicate This issue is a duplicate. v2 labels Jun 24, 2019
@justnance
Copy link

@forty - Thanks for the feedback. We are discussing a similar feature for CLI V2 which we are tracking under #3587. I'm going to close this issue so we can centralize the discussion and avoid duplicate efforts. Please 👍 or comment on #3587.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue is a duplicate. v2
Projects
None yet
Development

No branches or pull requests

2 participants