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

Add third-party auth plugins support #28

Merged
merged 1 commit into from
May 8, 2024

Conversation

ikalnytskyi
Copy link
Owner

The HTTPie ecosystem has myriads of third-party authentication plugins. Even though they ain't as widespread as core ones, I see a huge advantage if we can support those plugins too.

This patch adds support of third-party authentication plugins by retrieving a proper authentication plugin via HTTPie's plugin manager, instead of reimplementing authentication code for core plugins in this project source tree.

There's another benefits of using authentication plugins here. According to some HTTPie in-source comments, the HTTP basic auth from requests library has some unicode issues, and those HTTPie mantains its own basic auth implementation. By using authentication plugins directly, we can get advantage of that implementation too.

The HTTPie ecosystem has myriads of third-party authentication plugins.
Even though they ain't as widespread as core ones, I see a huge
advantage if we can support those plugins too.

This patch adds support of third-party authentication plugins by
retrieving a proper authentication plugin via HTTPie's plugin manager,
instead of reimplementing authentication code for core plugins in this
project source tree.

There's another benefits of using authentication plugins here. According
to some HTTPie in-source comments, the HTTP basic auth from requests
library has some unicode issues, and those HTTPie mantains its own basic
auth implementation. By using authentication plugins directly, we can
get advantage of that implementation too.
@ikalnytskyi ikalnytskyi force-pushed the feat/support-auth-plugins branch from 23df99d to 60d889b Compare May 8, 2024 14:10
@ikalnytskyi ikalnytskyi merged commit 5aef1e7 into master May 8, 2024
8 checks passed
@ikalnytskyi ikalnytskyi deleted the feat/support-auth-plugins branch May 8, 2024 14:12
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