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

WIP - Filter for HTTP basic authentication #716

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jgraef
Copy link

@jgraef jgraef commented Oct 1, 2020

Hey,

I need a filter to handle HTTP basic authentication. I saw that there were efforts to implement this in #62, but without any results.

This is a minimal implementation for such a filter. It's just extracting the header, or sends a rejection if the header was not sent by the client. The consumer still has to check if the credentials sent by the client are valid.

Futhermore it's currently not sending back a WWW-Authenticate header in the rejection. How would I go about adding a header to a rejection?

If there are any other things that should be changed here, please let me know. I'd also be interested in adding or allowing the possibility to add more authentication methods.

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.

2 participants