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

split credentials and config handling, set custom auth header to the client #37

Merged
merged 1 commit into from
Jan 6, 2023

Conversation

skshetry
Copy link
Member

@skshetry skshetry commented Jan 6, 2023

I noticed that the custom auth header was not being set to client_kwargs which is what is set in aiohttp.Client, but passed as kwargs instead which httpfs tries to pass to individual methods on every call (to get/head etc). To make it robust, and have similar behavior with basic auth, I have set it to client_kwargs instead.

Also, while trying to fix, I noticed that we were mixing credentials handling with config handling, so I have attempted to split them.

@skshetry skshetry requested a review from dtrifiro January 6, 2023 08:34
@skshetry skshetry merged commit 09cf743 into main Jan 6, 2023
@skshetry skshetry deleted the refactor-config branch January 6, 2023 11:19
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.

1 participant