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 checks for users, isolated logic -- refactored #7

Merged
merged 24 commits into from
May 24, 2016

Conversation

matteius
Copy link
Contributor

This PR is intended as a replacement for the feature request of: #2

It rebases off the trunk and adds the feature in more minimally now that the refactor is less relevant.

ericholscher and others added 24 commits October 28, 2015 15:55
Add option to only track authed sessions
We could rely on Django logout method (https://github.com/django/django/blob/master/django/contrib/auth/__init__.py) -- it would check user and flush session for us.
Reduce number of run-time operations in favor of init-time code. Use settings only for things could change in run-time.
refactor existing logic to eliminate bug where the middleware doesn't
invalidate the cache if a remote address was not set on the
request--even if the validate IP part is disabled.
Adds the ability to redirect to a known view, +tests and corrects the
test runner to point at a real test url configuration.
Django 1.9 fails the Python 3.3.5 build because it requires 3.4 or
later; it also fails the 2.6.x build because it requires at least 2.7 of
the Python 2 series.   This in the docs:
https://docs.djangoproject.com/en/1.9/faq/install/#what-python-version-can-i-use-with-django
If the IP is known but then later is unknown, that also fails
validation.
refactored the support for RESTRICTEDSESSIONS_AUTHED_ONLY setting based
on latest trunk.
For only restricting sessions when the users are logged in.
@coveralls
Copy link

coveralls commented May 24, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling ea55d55 on CashStar:master into 4d540d2 on erikr:master.

@matteius
Copy link
Contributor Author

@erikr This is my attempt at rebasing #2 ... hope this works for everyone but let me know.

@mxsasha mxsasha merged commit f66f5fb into mxsasha:master May 24, 2016
@mxsasha
Copy link
Owner

mxsasha commented May 24, 2016

Thanks, merged. I'll try to roll a release soon!

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.

5 participants