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

Introduce new command called "aws login" to enable the user to login with username and password

Open SARAVANA1501 opened this issue 3 years ago • 7 comments

Is your feature request related to a problem? Please describe.

  • We can configure credential for aws SDK in so many ways, but non of them allowed me to login use my username and password, like this: https://pypi.org/project/awscli-login/ I believe this is basic functionality of aws cli.

SARAVANA1501 avatar Dec 04 '20 16:12 SARAVANA1501

Hi @SARAVANA1501,

Thanks for posting. That plugin works with the AWS plugin system, and is specific for using a SAML Identity Provider (IdP). Is this the feature you're requesting?

kdaily avatar Dec 04 '20 21:12 kdaily

yes, My company using federation authentication system, but we are not allowed to generate programatic key and secret to login aws sdk. Every time we are using some script to do web login and save the key and secret in "~/.aws/credentials". For the same case Azure providing better experience in its "az login" command.

SARAVANA1501 avatar Dec 05 '20 13:12 SARAVANA1501

@kdaily Any update on this?

SARAVANA1501 avatar May 25 '21 12:05 SARAVANA1501

@SARAVANA1501,

The AWS CLI already supports single sign-on (SSO) functionality. Does this satisfy your use case?

https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html

Users have also used browser-based authentication methods using a credential process as described here. They use JavaScript to return credentials in the appropriate format.

https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sourcing-external.html

kdaily avatar Sep 29 '21 22:09 kdaily

Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.

github-actions[bot] avatar Oct 04 '21 23:10 github-actions[bot]

Thanks, I went through the document, We are using federation auth system provided by Azure AD, I am not sure how to configure sso on aws cli v2.

SARAVANA1501 avatar Oct 05 '21 03:10 SARAVANA1501

single sign-on (SSO) seems like a workaround but still not seeming-less smooth

davidkhala avatar Aug 29 '22 12:08 davidkhala

AWS IAM Identity Center is now the successor to SSO per this documentation: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html.

@SARAVANA1501 you mentioned using Azure AD, so I think this is the specific documentation you should refer to: https://docs.aws.amazon.com/singlesignon/latest/userguide/azure-ad-idp.html.

Please let us know if that addresses your use case or if there's anything you wanted to follow up on regarding this. Thanks!

tim-finnigan avatar Nov 03 '22 18:11 tim-finnigan

Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.

github-actions[bot] avatar Nov 08 '22 19:11 github-actions[bot]