Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/auth_tests
Commit message (Collapse)AuthorAgeFilesLines
* Removed unnecessary app_label='auth' on auth_tests models.Tim Graham2015-10-277-30/+9
| | | | This is a relic of when the tests were stored in contrib.auth.tests.
* Fixed #25596 -- Fixed regression in password change view ↵Tim Graham2015-10-273-7/+4
| | | | | | | with custom user model. The reverse() added in 50aa1a790ca66c2a93e0a52e00c53375b269ff49 crashed on a custom user model.
* Fixed #25490 -- Made the logout() view send "no-cache" ↵Kaleb Elwert2015-10-021-0/+8
| | | | headers.
* Refs #16860 -- Fixed password help text when there ↵Antoine Catton2015-09-281-0/+4
| | | | | | aren't any validators. This avoids creating an empty list which is invalid HTML 4.
* Fixed #25457 -- Improved formatting of password ↵Tzu-ping Chung2015-09-251-1/+1
| | | | validation errors in management command output.
* Increased the default PBKDF2 iterations for the 1.10 ↵Tim Graham2015-09-241-3/+3
| | | | release cycle.
* Refs #23957 -- Required session verification per ↵Tim Graham2015-09-243-36/+11
| | | | deprecation timeline.
* Refs #21648 -- Removed is_admin_site option from ↵Tim Graham2015-09-242-18/+1
| | | | | | password_reset() view. Per deprecation timeline.
* Removed obsolete supports_* auth backend attributes in testsClaude Paroz2015-09-201-6/+0
|
* Fixed typo in "pbkdf2" test names.Tim Graham2015-09-201-2/+2
|
* Fixed #24944 -- Added extra_email_context parameter to ↵sujayskumar2015-09-193-0/+15
| | | | password_reset() view.
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-1/+2
|
* Added two more tests for user-entered passwords when ↵David Gibbons2015-08-181-0/+66
| | | | creating a superuser.
* Fixed flake8 warning.Tim Graham2015-08-031-0/+1
|
* Fixed #25089 -- Added password validation to ↵Alex Becker2015-08-021-2/+56
| | | | createsuperuser/changepassword.
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-3/+3
| | | | on_delete for ForeignKey/OneToOneField
* Fixed #25052; refs #16860 -- Added password validation ↵Tim Graham2015-07-201-0/+21
| | | | to UserCreationForm.
* Refs #16860 -- Moved password_changed() logic to ↵Tim Graham2015-07-202-8/+77
| | | | | | AbstractBaseUser. Thanks Carl Meyer for review.
* Fixed #25029 -- Added PersistentRemoteUserMiddleware for ↵Jan Pazdziora2015-07-021-0/+23
| | | | login-page-only external authentication.
* Sorted imports in __init__.py files.Tim Graham2015-06-271-4/+4
|
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-241-2/+2
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Fixed #25009 -- Allowed ↵Francisco Albarran2015-06-221-0/+21
| | | | User.objects.create_user(...,is_staff=True) to work.
* Removed support for Python 3.3.Tim Graham2015-06-181-1/+1
|
* Fixed #24914 -- Added authentication mixins for CBVsMarkus Holtermann2015-06-171-0/+251
| | | | | | | | | | | | | | 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.
* Refs #16860 -- Fixed a resource and deprecation warning ↵Tim Graham2015-06-161-1/+1
| | | | in password validation.
* Refs #16860 -- Minor edits and fixes to password validation.Tim Graham2015-06-102-6/+19
|
* Fixed #21927 -- Made application and instance namespaces ↵Marten Kenbeek2015-06-083-6/+6
| | | | | | | | more distinct. 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.
* Fixed #24929 -- Allowed permission_required decorator to ↵Raphael Michel2015-06-081-0/+10
| | | | take any iterable
* Fixed #16860 -- Added password validation to ↵Erik Romijn2015-06-073-0/+181
| | | | django.contrib.auth.
* Fixed #24910 -- Added createsuperuser support for ↵Alasdair Nicol2015-06-062-2/+40
| | | | | | | non-unique USERNAME_FIELDs Clarified docs to say that a non-unique USERNAME_FIELD is permissable as long as the custom auth backend can support it.
* Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette2015-05-204-8/+12
|
* Refs #24553 -- Fixed urlpatterns leakage in auth_testsRiccardo Magliocchetti2015-05-192-4/+3
|
* Fixed #24696 -- Made CSRF_COOKIE computation lazy.Jay Cox2015-05-031-2/+3
| | | | | | | | | | | | 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.
* Use mock.patch in migrations testsCurtis Maloney2015-04-091-2/+2
| | | | | | | | | 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
* Fixed #24115 -- Allowed bcrypt hashers to upgrade ↵Tim Graham2015-03-311-0/+32
| | | | | | passwords on rounds change. Thanks Florian Apolloner for the review.
* Refs #15779 -- Fixed UserChangeForm regression ↵Claude Paroz2015-03-281-2/+17
| | | | | | introduced by 1791a7e75 Thanks Tim Graham for reporting the regression.
* Fixed #23926 -- Improved validation error for custom ↵Joeri Bekker2015-03-161-0/+18
| | | | permissions that are too long.
* Converted test fixtures to setUpTestData methodsJosh Smeaton2015-03-058-168/+168
|
* Isolated auth_tests from contenttypes_tests; refs #11505.Tim Graham2015-02-151-0/+8
|
* Fixed #24315 -- Fixed ↵Tim Graham2015-02-131-1/+22
| | | | auth.views.password_reset_confirm() with a UUID user.
* Fixed #24334 -- Allowed admin password reset to work ↵Tim Graham2015-02-132-0/+58
| | | | | | with non-digit custom user model primary key. Thanks Loic for help and Simon for review.
* Fixed #24161 -- Stored the user primary key as a ↵Tim Graham2015-02-123-3/+31
| | | | | | | | | | serialized value in the 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.
* Moved non-documented auth test models to the new test ↵Tim Graham2015-02-119-11/+150
| | | | location.
* Moved contrib.auth tests out of contrib.Tim Graham2015-02-1142-0/+4477