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 IAM Identity Center (SSO) authentication #332

Closed
1 of 2 tasks
dbaileyut opened this issue Aug 18, 2023 · 4 comments
Closed
1 of 2 tasks

Add support for IAM Identity Center (SSO) authentication #332

dbaileyut opened this issue Aug 18, 2023 · 4 comments
Labels
feature-request A feature should be added or improved. module/powershell-cmdlets p1 This is a high priority issue queued

Comments

@dbaileyut
Copy link

dbaileyut commented Aug 18, 2023

Describe the feature

Implement native PowerShell features to bring feature parity from the AWS command line tools around IAM Identity Center (SSO) authentication/profiles to AWS.Tools PowerShell modules.

Use Case

I'm frustrated by having to copy and paste IAM Identity Center (SSO) credentials or having to use 3rd party scripts to update after SSO tokens expire.

Proposed Solution

  • I should be able to do the equivalent of aws configure sso in PowerShell without requiring the AWS command line tools
  • I should be able to do the equivalent of aws sso login in PowerShell without requiring the AWS command line tools
  • All AWS PowerShell cmdlets should be aware of "sso" profile configurations and should be able to refresh tokens in as user friendly a way as the command line tools

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS Tools for PowerShell version used

4.1.396

PowerShell version used

PSVersion 7.3.6
PSEdition Core
GitCommitId 7.3.6
OS Microsoft Windows 10.0.22621
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

Operating System and version

Windows 11

@dbaileyut dbaileyut added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Aug 18, 2023
@ashishdhingra
Copy link
Contributor

Needs review with the team.

@dbaileyut Are you looking for something like Get-SSOLogin since AWS CLI also needs to manually execute aws sso login for next steps to be completed in web browser?

Thanks,
Ashish

@ashishdhingra ashishdhingra added needs-review and removed needs-triage This issue or PR still needs to be triaged. labels Aug 18, 2023
@dbaileyut
Copy link
Author

Maybe Connect-AWSSSO would align with PowerShell conventions better?
It's fine (and expected) to complete steps in a browser, I just want PowerShell to have the same experience the command line tools have with respect to SSO token refresh and configuration.

I.e., implement this experience in PowerShell: https://docs.aws.amazon.com/cli/latest/userguide/sso-configure-profile-token.html

@ashishdhingra ashishdhingra added p2 This is a standard priority issue queued p1 This is a high priority issue and removed needs-review p2 This is a standard priority issue labels Aug 23, 2023
@afroz429
Copy link
Contributor

Happy to announce that the following new cmdlets were added starting from version 4.1.538 of AWS.Tools.Common module. Thanks for the feature request.

Initialize-AWSSSOConfiguration similar to aws configure sso
Invoke-AWSSSOLogin similar to aws sso login
Invoke-AWSSSOLogout similar to aws sso logout
Set-AWSSSOSessionConfiguration similar to aws configure sso-session

User guide: https://docs.aws.amazon.com/powershell/latest/userguide/creds-idc.html

Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

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. module/powershell-cmdlets p1 This is a high priority issue queued
Projects
None yet
Development

No branches or pull requests

3 participants