summaryrefslogtreecommitdiff
path: root/tests/auth_tests/test_auth_backends.py
AgeCommit message (Collapse)Author
2026-04-24Fixed #36542 -- Marked authenticate() with @sensitive_variables() decorator.KANIN KEARPIMY
Thanks Olivier Dalang, Tim McCurrach, Sarah Boyce, and Mar Bartolome for reviews.
2026-02-10Fixed #36903 -- Fixed further NameErrors when inspecting functions with ↵93578237
deferred annotations. Provide a wrapper for safe introspection of user functions on Python 3.14+. Follow-up to 601914722956cc41f1f2c53972d669ddee6ffc04.
2025-07-23Refs #36500 -- Rewrapped long docstrings and block comments via a script.django-bot
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
2024-11-15Refs #28215 -- Marked auth form passwords as sensitive variables.GappleBee
2024-10-07Fixed #35303 -- Implemented async auth backends and utils.Jon Janzen
2024-01-04Used enterClassContext() where appropriate.Mariusz Felisiak
2023-12-31Used addCleanup() in tests where appropriate.Mariusz Felisiak
2023-06-27Fixed #34391 -- Added async-compatible interface to auth functions and ↵Jon Janzen
related methods test clients.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-11-11Fixed #33269 -- Made AnonymousUser/PermissionsMixin.has_perms() raise ↵Lie Ryan
ValueError on string or non-iterable perm_list.
2020-10-28Refs #28215 -- Marked auth credentials as sensitive variables.Hasan Ramezani
Co-authored-by: Collin Anderson <collin@onetencommunications.com>
2019-12-10Fixed #26480 -- Fixed crash of contrib.auth.authenticate() on decorated ↵Baptiste Mispelon
authenticate() methods of authentication backends. The Signature API (PEP 362) has better support for decorated functions (by default, it follows the __wrapped__ attribute set by functools.wraps for example).
2019-06-10Fixed #30556 -- Avoided useless query and hasher call in ↵Aymeric Augustin
ModelBackend.authenticate() when credentials aren't provided. There's no need to fetch a user instance from the database unless a username and a password are provided as credentials.
2019-06-05Refs #30226 -- Added User.get_user_permissions() method.Tobias Bengfort
Added to mirror the existing User.get_group_permissions().
2019-06-05Fixed #30226 -- Added BaseBackend for authentication.Tobias Bengfort
2018-11-27Switched setUp() to setUpTestData() where possible in Django's tests.Simon Charette
2018-03-28Fixed #29258 -- Added type checking for login()'s backend argument.Abeer Upadhyay
2018-03-16Fixed hanging indentation in various code.Mariusz Felisiak
2018-01-03Fixed #28982 -- Simplified code with and/or.Дилян Палаузов
2017-10-14Fixed #28713 -- Prevented ModelBackend.get_all_permissions() from mutating ↵Yuri Kaszubowski Lopes
get_user_permissions().
2017-07-29Used assertRaisesMessage() to test Django's error messages.Mads Jensen
2017-03-01Improved test coverage for django.contrib.auth.Anton Samarchyan
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-20Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.Tim Graham
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-09-12Fixed #25187 -- Made request available in authentication backends.Aleksej Manaev
2016-06-16Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne
2016-04-09Fixed #25847 -- Made User.is_(anonymous|authenticated) properties.Jeremy Lainé
2016-03-23Fixed #25232 -- Made ModelBackend/RemoteUserBackend reject inactive users.Alexander Gaevsky
2016-03-12Fixed #26343 -- Sent user_login_failed signal if an auth backend raises ↵ieatkittens
PermissionDenied.
2016-02-04Fixed #26089 -- Removed custom user test models from public API.Simon Charette
Thanks to Tim Graham for the review.
2016-01-29Refs #26022 -- Used context manager version of assertRaises in tests.Hasan
2016-01-07Fixed #24855 -- Allowed using contrib.auth.login() without credentials.Paulo Poiati
Added an optional `backend` argument to login().
2015-10-27Removed unnecessary app_label='auth' on auth_tests models.Tim Graham
This is a relic of when the tests were stored in contrib.auth.tests.
2015-10-27Fixed #25596 -- Fixed regression in password change view with custom user model.Tim Graham
The reverse() added in 50aa1a790ca66c2a93e0a52e00c53375b269ff49 crashed on a custom user model.
2015-09-20Removed obsolete supports_* auth backend attributes in testsClaude Paroz
2015-05-20Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette
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