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

Add support for AWS Single Sign-On #3447

Closed
brandond opened this issue Jul 12, 2018 · 43 comments
Closed

Add support for AWS Single Sign-On #3447

brandond opened this issue Jul 12, 2018 · 43 comments
Assignees
Labels
feature-request A feature should be added or improved.

Comments

@brandond
Copy link

AWS recently released a SSO service that integrates with Organizations and the AWS Directory Service:
https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html

Currently, the only way to consume this service is via a browser. Shortcuts are provided to copy and paste shell commands to export the appropriate environment variables, but this is unacceptable. Users should not need to use a web browser to authenticate with CLI tools.

Other tools such as aws-adfs exist to do this for ADFS, Octa, etc, but there are not currently any for AWS SSO. Since this is a first-party AWS service, aws-cli should support it.

@justnance justnance self-assigned this Jul 15, 2018
@justnance
Copy link

@brandond, Thank you for reaching out. This seems like a reasonable feature request marking the label as such. Can you tell me more how you would like this feature to work or provide an example. Thanks.

@justnance justnance added the feature-request A feature should be added or improved. label Jul 16, 2018
@brandond
Copy link
Author

Other tools in this space use interactive prompts, much like the aws configure command. The work flow is generally something along the lines of:

  • Prompt for username
  • Prompt for password
  • Prompt for MFA code (if necessary)
  • Make login call to SSO service, enumerate available roles, retrieve SAML assertion
  • Parse SAML assertion to discover available roles
  • Prompt to select role
  • Make STS:AssumeRoleWithSAML call
  • Store temporary credentials returned by STS to profile (~/.aws/credentials)

I haven't been able to find any documentation on APIs for configuring or consuming SSO, but a quick look at the developer tool network log in my browser indicates that there is a REST service behind the console.

@justnance justnance added the investigating This issue is being investigated and/or work is in progress to resolve the issue. label Jul 19, 2018
@justnance
Copy link

@brandond, Thank you for your feedback. It sound reasonable and this issue will remain labeled as feature request. Thanks.

@justnance justnance removed the investigating This issue is being investigated and/or work is in progress to resolve the issue. label Jul 21, 2018
@hassankhan
Copy link

+1 to this, would make our lives much easier

@ghost
Copy link

ghost commented Nov 6, 2018

We need CLI support. Right now our devs are stuck logging in and out of the SSO screen to get credentials every hour.

@angusfz
Copy link

angusfz commented Nov 13, 2018

+1 For this feature

2 similar comments
@Kim725
Copy link

Kim725 commented Nov 13, 2018

+1 For this feature

@jonatasalves-hotmart
Copy link

+1 For this feature

@Zordrak
Copy link

Zordrak commented Jan 23, 2019

100% required.

@Photon0gen
Copy link

+1

@akr257
Copy link

akr257 commented Mar 2, 2019

+1 for this feature. AWS SSO became available in our region (Sydney), but sadly it doesn't look like we can use it until the aws cli supports gaining access programatically.

@hammerheadgit
Copy link

+1 for this. This would make a huge business impact. Atleast for us.

@theTestTube
Copy link

+1

@et304383
Copy link

It's been months. Where is the support for AWS SSO? If it's going to be a competitor to Okta, Keycloak, or ADFS, it needs CLI methods to access credentials.

@cargauer
Copy link

+1 having AWS Landing Zone with integrated SSO and can't use CLI with it, is no good product solution ... please add this feature

@davidrdark
Copy link

+1

1 similar comment
@supergicko
Copy link

+1

@jtheuer
Copy link

jtheuer commented Apr 30, 2019

+1 but consider also SAML IdPs which require you to login via web

@Codeseer
Copy link

+1

@jamestharpe
Copy link

+1

Yes please, this would save a lot of time and hassle.

@mechanicalpete
Copy link

+1

@mkarnati-chwy
Copy link

+1 +1 +1

@dan-lind
Copy link

dan-lind commented Jul 5, 2019

+1

@ORESoftware
Copy link

ORESoftware commented Jul 12, 2019

AWS-CLI and AWS-SDK support would be nice

aws/aws-sdk-js#2772

@m6a-UdS
Copy link

m6a-UdS commented Jul 12, 2019

+1

@C-Kenny
Copy link

C-Kenny commented Jul 17, 2019

+1 we still updating our credentials files every hour with keys from the browser

@avanbecelaere
Copy link

+1

@reidca
Copy link

reidca commented Aug 14, 2019

We need CLI support. Right now our devs are stuck logging in and out of the SSO screen to get credentials every hour.

This was driving me crazy, until AWS implement a new feature it is possible to extend this to up to 12 hours to make it less burdensome.

@ccsalway
Copy link

+100

@DaveOps83
Copy link

+600

@mo-saeed
Copy link

+1

@mo-saeed
Copy link

Would be good also to add support for cloud-formation and python sdk.

@arthur-burkart-simplisafe

@matwerber1
Copy link

longer session duration is nice, but would be great if we could programmatically authenticate without the need to go through a browser; helps automate and simplify local dev.

@wnkz
Copy link

wnkz commented Sep 15, 2019

So I got tired of waiting and made a small tool for this. It's still very early and could be improved but it has worked for me for the last couple of weeks.
Have a look and tell me what you think: github.com/wnkz/aws-sso.
Hope this can help some of you as well.

@mark-bixler
Copy link

This is the current challenge that prohibiting us from using SSO and keeping our developers staying on GCP. Most of our Dev's are using Windows Boxes w/ Visual Studio.

@jesuskwice
Copy link

@brandond, Thank you for reaching out. This seems like a reasonable feature request marking the label as such. Can you tell me more how you would like this feature to work or provide an example. Thanks.

Hi @justnance, any progress update on this? This is a very critical piece for many, in determining whether they can utilize AWS Directory Service / SSO, or need to go a different route (e.g., Okta, etc). Hoping there may be light at the end of this tunnel soon...?

@valayDave
Copy link

Is there a way to create permission sets for AWS SSO via CLI?

@JohnVonNeumann
Copy link

It is absolutely ridiculous that no one has responded to this in almost 18 months.

@icysharp
Copy link

icysharp commented Nov 8, 2019

finally, it's here with AWS CLI v2 preview. works great for me. thanks!

https://aws.amazon.com/blogs/developer/aws-cli-v2-now-supports-aws-single-sign-on/

@kyleknap
Copy link
Member

kyleknap commented Dec 3, 2019

Closing issue. It is now supported in AWS CLI v2 developer preview and instructions on how to configure it can be found in the v2 user guide: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html

@kyleknap kyleknap closed this as completed Dec 3, 2019
@danushkaf
Copy link

Is there a way to do login programatically. We need to do this from a script to be able to connect to k8s cluster created in AWS control tower managed account.

@spanky-medal
Copy link

Mandatory browser interaction seems absurd. Are there any plans to improve this with any of the suggestions, like --no-browser, etc?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests