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

Refactor authentication into middleware #132

Closed
wants to merge 1 commit into from

Conversation

Xtansia
Copy link
Collaborator

@Xtansia Xtansia commented Mar 14, 2023

Description

Refactors the authentication handling of the transport out into a middleware concept. Allows pulling AWS SigV4 auth out to a separate crate.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@codecov-commenter
Copy link

codecov-commenter commented Mar 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7548c9f) 74.00% compared to head (c8bc677) 74.04%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #132      +/-   ##
==========================================
+ Coverage   74.00%   74.04%   +0.03%     
==========================================
  Files         403      406       +3     
  Lines       64198    64211      +13     
==========================================
+ Hits        47508    47543      +35     
+ Misses      16690    16668      -22     
Flag Coverage Δ
integration 74.04% <ø> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is very good! One comment below on naming.

request: Request,
) -> BoxFuture<Result<Request, BoxError<'static>>> {
Box::pin(future::ready(Ok(request)))
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The naming seems off. Is there some kind of Rust standard for middleware/callbacks? I would adopt either an event style on_before, on_after or a stack style configure and call?

@Xtansia Xtansia force-pushed the refactor/aws branch 4 times, most recently from ae804f4 to b33e9c8 Compare March 23, 2023 20:33
@dblock
Copy link
Member

dblock commented Dec 4, 2023

@Xtansia any interest in finishing this?

@Xtansia
Copy link
Collaborator Author

Xtansia commented Dec 4, 2023

@dblock Yes, I'm planning on coming back to this soon-ish, especially now that the aws deps have stabilised.

@Xtansia
Copy link
Collaborator Author

Xtansia commented Dec 10, 2023

Have decided to split this into multiple smaller more specific PRs

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.

3 participants