-
Notifications
You must be signed in to change notification settings - Fork 195
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 SSO bearer token authentication to the SDK #3453
Conversation
This PR creates a trait to provide access tokens, which will be used to configure token providers in `SdkConfig`. ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
This PR adds the Code Catalyst service to the smoke test models, which is already done as part of #3453, but having it as a separate commit that merges before #3453 will allow us to see a codegen diff on the Code Catalyst service during review of that feature. ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
A new generated diff is ready to view.
A new doc preview is ready to view. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ship it 🚀
aws/sdk/integration-tests/codecatalyst/tests/sso_bearer_auth.json
Outdated
Show resolved
Hide resolved
/// Note: the [`Self::bearer_token`] and [`Self::bearer_token_resolver`] methods are | ||
/// equivalent to this method, but take the [`Token`] and [`ResolveIdentity`] types | ||
/// respectively. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding these notes!
/// ```no_run | ||
/// make_test!(live: test_name) | ||
/// ``` | ||
macro_rules! make_test { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we give this macro a different name?
let err = DisplayErrorContext( | ||
&self | ||
.token_provider | ||
.resolve_token(self.time_source.clone()) | ||
.await | ||
.expect_err("expected failure"), | ||
) | ||
.to_string(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should make an extension trait that does this
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
This PR adds support for SSO bearer token authentication to the AWS SDK, specifically for Code Catalyst, which requires authentication via SSO with a Builder ID using a bearer token rather than SigV4.
This functionality was developed in a feature branch, and this PR merely merges that branch to main. The changes consist of the following previous PRs:
All these changes have been reviewed in the previous PRs, but it would be good to review this again as a whole to verify it all looks good.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.