-
Notifications
You must be signed in to change notification settings - Fork 213
Support selectable auth schemes #4203
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
base: main
Are you sure you want to change the base?
Conversation
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. |
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.
Overall looks good
aws/rust-runtime/aws-config/src/default_provider/auth_scheme_preference.rs
Outdated
Show resolved
Hide resolved
...kotlin/software/amazon/smithy/rust/codegen/client/smithy/auth/AuthSchemeResolverGenerator.kt
Outdated
Show resolved
Hide resolved
This reverts commit 842ee41.
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.
Nice!
aws/rust-runtime/aws-config/src/default_provider/auth_scheme_preference.rs
Outdated
Show resolved
Hide resolved
A new generated diff is ready to view.
A new doc preview is ready to view. |
This commit addresses #4203 (comment)
A new generated diff is ready to view.
A new doc preview is ready to view. |
…4211) ## Motivation and Context This PR is a prerequisite for #4203. # Details PR4203 has updated some of the `AuthSchemeId` string values, which causes the `no_auth` test to fail in the semver hazards check. This happens because the inner string value for `NO_AUTH_SCHEME_ID` has been modified from `no_auth` to `noAuth`. To resolve this, this PR updates the test expectation so that it no longer depends on raw string values. Once this PR is merged and released from `aws-sdk-rust`, PR4203 should pass the semver hazards check successfully. Also the test has been moved to `no_auth.rs` since it is not specific to S3 Express; it was originally placed in `express.rs` because the issue was first discovered while investigating S3 Express behavior. ---- _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. |
semver-hazards check failure will be resolved when #4211 is released from
aws-sdk-rust
Description
Add support for auth scheme preference, which allows customers to re-prioritize the order of auth schemes originally determined by the auth scheme resolver. See the changelog where the auth scheme preference can be configured.
Note: The preference list is merely a hint rather than a strict override. Any auth schemes not included in the originally resolved auth schemes will be ignored, and won't be an error.
To support the implementation, a utility method has been added toNowOrLater
to map an inner future.Testing
Those called out in the feature spec:
Alternative Auth Resolution
Resolving Auth and Credentials
Manual auth schemes configuration
Checklist
.changelog
directory, specifying "client," "server," or both in theapplies_to
key..changelog
directory, specifying "aws-sdk-rust" in theapplies_to
key.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.