-
Notifications
You must be signed in to change notification settings - Fork 97
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
feat(experimentalIdentityAndAuth): add internal error and success handlers to HttpSigner
and QOL changes
#1080
Conversation
0bc836e
to
3a1f05b
Compare
HttpSigner
and QOL changes
3a1f05b
to
02fc3b8
Compare
* @internal | ||
*/ | ||
export interface SuccessHandler { | ||
(httpResponse: HttpResponse | unknown, signingProperties: Record<string, unknown>): void; |
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.
signingProperties should have a type. It can be a record too (&
), but it should also indicate that it tends to have properties like name
, in
, etc.
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.
This is the generic HttpSigner
which has no context for the properties of any specific HttpAuthScheme
.
I think specific concrete implementations of HttpSigner
can provide more type hints, but I can add that in a follow-up PR.
02fc3b8
to
2b09607
Compare
* chore: prettify smithy-client * chore: prettier-ignore months array * chore: fixes for issues happened during precommit
Issue #, if available:
N/A.
Description of changes:
Add internal error and success handlers to
HttpSigner
forexperimentalIdentityAndAuth
.Also add some quality of life improvements:
getSmithyContext()
andnormalizeProvider()
to@smithy/core
If one or more of the packages in the
/packages
directory has been modified, be sureyarn changeset add
has been run and its output hasbeen committed and included in this pull request. See CONTRIBUTING.md.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.