aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

Add support for AWS Single Sign-On

Open brandond opened this issue 8 years ago • 43 comments

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.

brandond avatar Jul 12 '18 18:07 brandond

@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 avatar Jul 16 '18 21:07 justnance

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.

brandond avatar Jul 17 '18 18:07 brandond

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

justnance avatar Jul 21 '18 03:07 justnance

+1 to this, would make our lives much easier

hassankhan avatar Nov 02 '18 05:11 hassankhan

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

ghost avatar Nov 06 '18 17:11 ghost

+1 For this feature

angusfz avatar Nov 13 '18 00:11 angusfz

+1 For this feature

Kim725 avatar Nov 13 '18 02:11 Kim725

+1 For this feature

jonatasalves-hotmart avatar Nov 14 '18 21:11 jonatasalves-hotmart

100% required.

Zordrak avatar Jan 23 '19 09:01 Zordrak

+1

Photon0gen avatar Feb 08 '19 19:02 Photon0gen

+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.

akr257 avatar Mar 02 '19 12:03 akr257

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

hammerheadgit avatar Mar 02 '19 12:03 hammerheadgit

+1

theTestTube avatar Mar 12 '19 10:03 theTestTube

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.

et304383 avatar Mar 21 '19 16:03 et304383

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

cargauer-bhs avatar Apr 11 '19 07:04 cargauer-bhs

+1

davidrdark avatar Apr 17 '19 17:04 davidrdark

+1

supergicko avatar Apr 17 '19 17:04 supergicko

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

jtheuer avatar Apr 30 '19 07:04 jtheuer

+1

codeseer avatar May 24 '19 19:05 codeseer

+1

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

jamestharpe avatar May 24 '19 19:05 jamestharpe