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

AWS Single Sign-On (SSO) Provider Support #3755

Merged
merged 2 commits into from
Jan 27, 2021
Merged

Conversation

skmcgrail
Copy link
Member

Adds support for the AWS Single Sign-On (SSO) service by supporting the ability to utilize tokens cached in ~/.aws/sso/cache.

Adds support for the AWS SSO provider in the default credential loading chain.

@skmcgrail skmcgrail force-pushed the ssoProvider branch 2 times, most recently from d0201e6 to d14d48d Compare January 27, 2021 16:37
aws/session/session.go Show resolved Hide resolved
@skmcgrail skmcgrail merged commit 04e0775 into aws:master Jan 27, 2021
@skmcgrail skmcgrail deleted the ssoProvider branch January 27, 2021 23:44
aws-sdk-go-automation pushed a commit that referenced this pull request Jan 28, 2021
===

### Service Client Updates
* `service/databrew`: Updates service API and documentation
* `service/iot`: Updates service documentation
  * Documentation updates for IoT DeleteOTAUpdate API
* `service/managedblockchain`: Updates service API and documentation
* `service/monitoring`: Updates service API and documentation
  * Update to SDK to support label time zones in CloudWatch GetMetricData
* `service/robomaker`: Updates service API and documentation
* `service/wellarchitected`: Updates service documentation

### SDK Features
* `aws/credentials/ssocreds`: Add support for AWS Single Sign-On (SSO) Credential Provider ([#3755](#3755))
* `aws/session`: Support has been added to resolve shared configuration profiles that are configured for AWS Single Sign-On (SSO) ([#3755](#3755))
aws-sdk-go-automation added a commit that referenced this pull request Jan 28, 2021
Release v1.37.0 (2021-01-28)
===

### Service Client Updates
* `service/databrew`: Updates service API and documentation
* `service/iot`: Updates service documentation
  * Documentation updates for IoT DeleteOTAUpdate API
* `service/managedblockchain`: Updates service API and documentation
* `service/monitoring`: Updates service API and documentation
  * Update to SDK to support label time zones in CloudWatch GetMetricData
* `service/robomaker`: Updates service API and documentation
* `service/wellarchitected`: Updates service documentation

### SDK Features
* `aws/credentials/ssocreds`: Add support for AWS Single Sign-On (SSO) Credential Provider ([#3755](#3755))
* `aws/session`: Support has been added to resolve shared configuration profiles that are configured for AWS Single Sign-On (SSO) ([#3755](#3755))
@bflad
Copy link
Contributor

bflad commented Jan 28, 2021

Thank you so much, @jasdel, @skotambkar, and @skmcgrail ❤️ This is going to make so many people happy.

@sidewinder12s
Copy link

That is an understatement.

@BourgoisMickael
Copy link

What about NodeJS sdk ???

@josegonzalez
Copy link

Does anyone have an example for how to use this when using credentials.NewChainCredentials? I have the following code:

		s.creds = credentials.NewChainCredentials(
			[]credentials.Provider{
				&credentials.EnvProvider{},
				&credentials.SharedCredentialsProvider{},
				&ec2rolecreds.EC2RoleProvider{
					Client: ec2metadata.New(awsSession(s.region)),
				},
			})

		sess := session.New(&aws.Config{
			Credentials: s.creds,
			Region:      &s.region,
		})

Not sure what I need to change to add sso support as a provider above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants