summaryrefslogtreecommitdiff
path: root/tests/auth_tests
AgeCommit message (Collapse)Author
2015-11-25[1.9.x] Removed explicit User ids in tests.Tim Graham
Backport of 935061621136ddb4e4ca65a1861ee57e4e3dda09 from master
2015-10-27[1.9.x] Removed unnecessary app_label='auth' on auth_tests models.Tim Graham
This is a relic of when the tests were stored in contrib.auth.tests. Backport of 590b8c1c57217bd8bd33998bae490dbe3d09f045 from master
2015-10-27[1.9.x] Fixed #25596 -- Fixed regression in password change view with custom ↵Tim Graham
user model. The reverse() added in 50aa1a790ca66c2a93e0a52e00c53375b269ff49 crashed on a custom user model. Backport of 5acf203db2e9562dbe4073bf85d5043ef3121ea9 from master
2015-09-28[1.9.x] Refs #16860 -- Fixed password help text when there aren't any ↵Antoine Catton
validators. This avoids creating an empty list which is invalid HTML 4. Backport of 53ccffdb8c8e47a4d4304df453d8c79a9be295ab from master
2015-09-24[1.9.x] Fixed #25457 -- Improved formatting of password validation errors in ↵Tzu-ping Chung
management command output. Backport of 7372cdebed19a9d8e5527823c1e6825156babf98 from master
2015-09-20Removed obsolete supports_* auth backend attributes in testsClaude Paroz
2015-09-19Fixed typo in "pbkdf2" test names.Tim Graham
2015-09-18Fixed #24944 -- Added extra_email_context parameter to password_reset() view.sujayskumar
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-08-18Added two more tests for user-entered passwords when creating a superuser.David Gibbons
2015-08-02Fixed flake8 warning.Tim Graham
2015-08-01Fixed #25089 -- Added password validation to createsuperuser/changepassword.Alex Becker
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-07-20Fixed #25052; refs #16860 -- Added password validation to UserCreationForm.Tim Graham
2015-07-20Refs #16860 -- Moved password_changed() logic to AbstractBaseUser.Tim Graham
Thanks Carl Meyer for review.
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