-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(experimentalIdentityAndAuth): update
HttpAuthOption
and `HttpA…
…uthScheme` codegen After upgrading to Smithy 1.37.0 (#906), upgrade to `getEffectiveAuthSchemes` using `NO_AUTH_AWARE` and remove redundant code. For `HttpAuthOption`, allow any auth scheme to generate the corresponding `HttpAuthOption` function regardless of registering it in codegen. For `HttpAuthScheme`, reduce code duplication by looking at "inherited" `LanguageTarget` platforms (e.g. `REACT_NATIVE` inherits from `BROWSER`). `httpAuthSchemes` is only written in a `runtimeConfig` if the `IdentityProvider` and `Signer` are different between platforms, or if the registered `HttpAuthScheme`s are different. `httpAuthSchemes` is always written for `SHARED` as a default. For the `httpAuthSchemes` property on the client config interface, update it to `HttpAuthScheme[]` rather than `IdentityProviderConfiguration`.
- Loading branch information
Showing
8 changed files
with
250 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.