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 a basicauth-checking middleware #3

Merged
merged 4 commits into from
Mar 30, 2016

Conversation

rbarrois
Copy link
Contributor

This would add a BasicAuthMiddleware doing a similar job to the current decorator, as suggested in #2 .

In the process of writing this PR, I have felt it useful to alter the code layout to share code between decorators and middleware.
I advise reviewing the PR one commit as a time: each is an atomic unit, and tox tests pass on each commit.

This makes it easier to ensure our tests travel the whole Django stack.
This makes it easy to reuse it in other contexts.
Just as apache would do.
This allows the middleware to be used in front of Django's
``django.contrib.auth.middleware.RemoteUserMiddleware``.
@hirokiky
Copy link
Owner

Awesome job!

@hirokiky
Copy link
Owner

I checked codes. Great.

@hirokiky hirokiky merged commit 19b3ed9 into hirokiky:master Mar 30, 2016
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