Aleksi Häkli
42fe9c15fa
Unify import styling to use from ... imports
2019-02-13 14:05:24 +02:00
Aleksi Häkli
6240b20793
Clean up utils tests for get_client_username
2019-02-12 23:44:35 +02:00
Aleksi Häkli
40a0eae647
Improve tests
...
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2019-02-12 23:22:52 +02:00
Aleksi Häkli
0b6d84762a
Remove deprecated Six usages
...
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2019-02-10 21:47:02 +02:00
Aleksi Häkli
fcef40748a
Deprecate old signature for AXES_USERNAME_CALLABLE and update documentation
...
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2019-02-07 22:09:21 +02:00
Aleksi Häkli
715dedc069
Use PEP257 compliant docstrings
...
Unify docstring representations based on PEP 257
https://www.python.org/dev/peps/pep-0257/
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2019-02-07 18:42:54 +02:00
Aleksi Häkli
030810df79
Drop Python 2.7 and Python 3.4 support
...
Fixes #395
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2019-02-07 17:28:26 +02:00
Aleksi Häkli
d33a55b927
Use single quotes for strings
...
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2019-02-03 16:03:30 +02:00
Aleksi Häkli
8ab4ce228f
Add tests for faulty AXES_USERNAME_CALLABLEs
2018-12-23 04:21:57 +02:00
Aleksi Häkli
becc61818f
Add another test case for AXES_USERNAME_CALLABLE
...
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-12-23 04:02:17 +02:00
Aleksi Häkli
7c3e21166e
Backwards compatibility fixes for credentials
...
Revert some of the PR changes to tests to make sure that all of the
old format function invocations work with the old and new tests.
Implement small enchancements to documentation and credentials resolving
for usability and flexibility with custom authentication backends.
Update documentation to indicate that backwards compatibility
is supported as well as the new format credentials invocations.
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2018-12-23 02:58:53 +02:00
Benedikt Bauer
306dd3c596
Use credentials whenever possible in favor of request.POST
2018-12-19 15:05:09 +01:00
jd
4684a1a04f
Add a setting to supply a callable that can return a correct username given a request object #318
2018-05-22 14:54:45 -07:00
Aleksi Häkli
df8feb4f69
Backport unicode string literals for Python 2.7
...
Fixes #328
2018-04-18 15:21:09 +03:00
Camilo Nova
ba37442252
Added support for Django signals, big code refactor and improvements
2017-11-17 17:15:34 -05:00