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/credentials/stscreds: Added TokenFetcher #3256

Merged
merged 2 commits into from Apr 22, 2020

Conversation

micahhausler
Copy link
Member

@micahhausler micahhausler commented Apr 7, 2020

This change makes it possible to fetch a token from an arbitrary source, rather than the file system (Ex: Fetch from an HTTP service)

type FetchTokenFromMoon struct {}
func (v FetchTokenFromMoon) FetchToken(ctx credentials.Context) ([]byte, error) {
	return /* do something cool */
}

@micahhausler micahhausler reopened this Apr 13, 2020
@jasdel jasdel merged commit 6a1ae3f into aws:master Apr 22, 2020
@micahhausler micahhausler deleted the webidentityroleprovider-token branch April 22, 2020 17:49
aws-sdk-go-automation pushed a commit that referenced this pull request Apr 22, 2020
===

### Service Client Updates
* `service/codeguru-reviewer`: Updates service API, documentation, and paginators
* `service/es`: Updates service API and documentation
  * This change adds a new field 'OptionalDeployment' to ServiceSoftwareOptions to indicate whether a service software update is optional or mandatory. If True, it indicates that the update is optional, and the service software is not automatically updated. If False, the service software is automatically updated after AutomatedUpdateDate.
* `service/fms`: Updates service API and documentation
* `service/redshift`: Updates service API, documentation, and paginators
  * Amazon Redshift support for usage limits
* `service/transcribe-streaming`: Updates service API and documentation

### SDK Enhancements
* `aws/credentials/stscreds`: Add support for custom web identity TokenFetcher ([#3256](#3256))
  * Adds new constructor, `NewWebIdentityRoleProviderWithToken` for `WebIdentityRoleProvider` which takes a `TokenFetcher`. Implement `TokenFetcher` to provide custom sources for web identity tokens. The `TokenFetcher` must be concurrency safe. `TokenFetcher` may return unique value each time it is called.
aws-sdk-go-automation added a commit that referenced this pull request Apr 22, 2020
Release v1.30.12 (2020-04-22)
===

### Service Client Updates
* `service/codeguru-reviewer`: Updates service API, documentation, and paginators
* `service/es`: Updates service API and documentation
  * This change adds a new field 'OptionalDeployment' to ServiceSoftwareOptions to indicate whether a service software update is optional or mandatory. If True, it indicates that the update is optional, and the service software is not automatically updated. If False, the service software is automatically updated after AutomatedUpdateDate.
* `service/fms`: Updates service API and documentation
* `service/redshift`: Updates service API, documentation, and paginators
  * Amazon Redshift support for usage limits
* `service/transcribe-streaming`: Updates service API and documentation

### SDK Enhancements
* `aws/credentials/stscreds`: Add support for custom web identity TokenFetcher ([#3256](#3256))
  * Adds new constructor, `NewWebIdentityRoleProviderWithToken` for `WebIdentityRoleProvider` which takes a `TokenFetcher`. Implement `TokenFetcher` to provide custom sources for web identity tokens. The `TokenFetcher` must be concurrency safe. `TokenFetcher` may return unique value each time it is called.
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.

None yet

2 participants