summaryrefslogtreecommitdiff
path: root/tests/auth_tests
AgeCommit message (Collapse)Author
2015-07-02Fixed #25029 -- Added PersistentRemoteUserMiddleware for login-page-only ↵Jan Pazdziora
external authentication.
2015-06-27Sorted imports in __init__.py files.Tim Graham
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
2015-06-22Fixed #25009 -- Allowed User.objects.create_user(...,is_staff=True) to work.Francisco Albarran
2015-06-18Removed support for Python 3.3.Tim Graham
2015-06-17Fixed #24914 -- Added authentication mixins for CBVsMarkus Holtermann
Added the mixins LoginRequiredMixin, PermissionRequiredMixin and UserPassesTestMixin to contrib.auth as counterparts to the respective view decorators. The authentication mixins UserPassesTestMixin, LoginRequiredMixin and PermissionRequiredMixin have been inspired by django-braces <https://github.com/brack3t/django-braces/> Thanks Raphael Michel for the initial patch, tests and docs on the PR and Ana Balica, Kenneth Love, Marc Tamlyn, and Tim Graham for the review.
2015-06-16Refs #16860 -- Fixed a resource and deprecation warning in password validation.Tim Graham
2015-06-10Refs #16860 -- Minor edits and fixes to password validation.Tim Graham
2015-06-08Fixed #21927 -- Made application and instance namespaces more distinct.Marten Kenbeek
Made URL application namespaces be set in the included URLconf and instance namespaces in the call to include(). Deprecated other ways to set application and instance namespaces.
2015-06-08Fixed #24929 -- Allowed permission_required decorator to take any iterableRaphael Michel
2015-06-07Fixed #16860 -- Added password validation to django.contrib.auth.Erik Romijn
2015-06-06Fixed #24910 -- Added createsuperuser support for non-unique USERNAME_FIELDsAlasdair Nicol
Clarified docs to say that a non-unique USERNAME_FIELD is permissable as long as the custom auth backend can support it.
2015-05-20Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette
2015-05-19Refs #24553 -- Fixed urlpatterns leakage in auth_testsRiccardo Magliocchetti
2015-05-02Fixed #24696 -- Made CSRF_COOKIE computation lazy.Jay Cox
Only compute the CSRF_COOKIE when it is actually used. This is a significant speedup for clients not using cookies. Changed result of the “test_token_node_no_csrf_cookie” test: It gets a valid CSRF token now which seems like the correct behavior. Changed auth_tests.test_views.LoginTest.test_login_csrf_rotate to use get_token() to trigger CSRF cookie inclusion instead of changing request.META["CSRF_COOKIE_USED"] directly.
2015-04-09Use mock.patch in migrations testsCurtis Maloney
Currently some of the migrations tests rely on the fact 'input' is aliased because of six, instead of using mock.patch. Replace this code with proper use of mock.patch. Also, replace one case of excessively specific python version check with testing six.PY3
2015-03-30Fixed #24115 -- Allowed bcrypt hashers to upgrade passwords on rounds change.Tim Graham
Thanks Florian Apolloner for the review.
2015-03-28Refs #15779 -- Fixed UserChangeForm regression introduced by 1791a7e75Claude Paroz
Thanks Tim Graham for reporting the regression.
2015-03-16Fixed #23926 -- Improved validation error for custom permissions that are ↵Joeri Bekker
too long.
2015-03-05Converted test fixtures to setUpTestData methodsJosh Smeaton
2015-02-14Isolated auth_tests from contenttypes_tests; refs #11505.Tim Graham
2015-02-13Fixed #24315 -- Fixed auth.views.password_reset_confirm() with a UUID user.Tim Graham
2015-02-13Fixed #24334 -- Allowed admin password reset to work with non-digit custom ↵Tim Graham
user model primary key. Thanks Loic for help and Simon for review.
2015-02-12Fixed #24161 -- Stored the user primary key as a serialized value in the ↵Tim Graham
session. This allows using a UUIDField primary key along with the JSON session serializer. Thanks to Trac alias jamesbeith for the report and Simon Charette for the initial patch.
2015-02-11Moved non-documented auth test models to the new test location.Tim Graham
2015-02-11Moved contrib.auth tests out of contrib.Tim Graham