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

Basic auth middleware/extension #221

Open
BendingBender opened this issue Mar 4, 2024 · 1 comment · May be fixed by #223
Open

Basic auth middleware/extension #221

BendingBender opened this issue Mar 4, 2024 · 1 comment · May be fixed by #223

Comments

@BendingBender
Copy link

BendingBender commented Mar 4, 2024

Would you be interested in a basic auth middleware/extension? Currently, if a URL contains basic auth credentials fetch and by extension wretch will just throw an error.

The middleware I'd like to implement would extract the username/pw from the URL and add them as an Authorization header.
The extension could provide a basicAuth method so that users don't have know how to construct a basic auth header themselves.

@BendingBender BendingBender changed the title Basic auth middleware Basic auth middleware/extension Mar 4, 2024
@elbywan
Copy link
Owner

elbywan commented Mar 7, 2024

Hey @BendingBender 👋

Would you be interested in a basic auth middleware/extension?

This would be a good addition 👍

I don't have much spare time but I can give it a try next week end.

@BendingBender BendingBender linked a pull request Mar 11, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants