dependabot[bot]
f339b4cc1a
chore(deps): bump tox from 4.5.1 to 4.6.0
...
Bumps [tox](https://github.com/tox-dev/tox ) from 4.5.1 to 4.6.0.
- [Release notes](https://github.com/tox-dev/tox/releases )
- [Changelog](https://github.com/tox-dev/tox/blob/main/docs/changelog.rst )
- [Commits](https://github.com/tox-dev/tox/compare/4.5.1...4.6.0 )
---
updated-dependencies:
- dependency-name: tox
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-13 19:17:19 +03:00
dependabot[bot]
36b6c2c36e
chore(deps): bump coverage from 7.2.5 to 7.2.7
...
Bumps [coverage](https://github.com/nedbat/coveragepy ) from 7.2.5 to 7.2.7.
- [Release notes](https://github.com/nedbat/coveragepy/releases )
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst )
- [Commits](https://github.com/nedbat/coveragepy/compare/7.2.5...7.2.7 )
---
updated-dependencies:
- dependency-name: coverage
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-13 19:17:11 +03:00
dependabot[bot]
90ede53472
chore(deps): bump prospector from 1.10.0 to 1.10.2
...
Bumps [prospector](https://github.com/PyCQA/prospector ) from 1.10.0 to 1.10.2.
- [Release notes](https://github.com/PyCQA/prospector/releases )
- [Changelog](https://github.com/PyCQA/prospector/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/PyCQA/prospector/compare/1.10.0...1.10.2 )
---
updated-dependencies:
- dependency-name: prospector
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-13 19:16:22 +03:00
dependabot[bot]
8178a63bf7
chore(deps): bump sphinx-rtd-theme from 1.2.0 to 1.2.2
...
Bumps [sphinx-rtd-theme](https://github.com/readthedocs/sphinx_rtd_theme ) from 1.2.0 to 1.2.2.
- [Changelog](https://github.com/readthedocs/sphinx_rtd_theme/blob/master/docs/changelog.rst )
- [Commits](https://github.com/readthedocs/sphinx_rtd_theme/compare/1.2.0...1.2.2 )
---
updated-dependencies:
- dependency-name: sphinx-rtd-theme
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-13 19:16:09 +03:00
dependabot[bot]
75a0709c6f
chore(deps): bump pytest from 7.3.1 to 7.3.2
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.3.1 to 7.3.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/7.3.1...7.3.2 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-13 19:16:05 +03:00
Ian Fisher
5b235b50ed
Add check for callable settings
2023-06-13 19:15:07 +03:00
Maksim Zayakin
498a691e5d
chore: add pull request template
2023-06-13 19:09:57 +03:00
Maksim Zayakin
b8afdf13cf
chore: add feature request template
2023-06-13 19:09:57 +03:00
Maksim Zayakin
ba96c12507
chore: add bug report template
2023-06-13 19:09:57 +03:00
Maksim Zayakin
c228ae1891
chore: fix typo
2023-06-13 19:09:17 +03:00
Aleksi Häkli
fcdeb4ae3f
Update release.yml
...
Use repository-url instead of repository_url
as parameter name for the PyPI release task
2023-05-17 20:51:51 +03:00
Aleksi Häkli
d4cbdf7010
Version 6.0.1
2023-05-17 20:46:44 +03:00
Aleksi Häkli
1be420b95c
Update release.yml
...
Use stable v1 PyPI release task
2023-05-17 20:45:50 +03:00
Aleksi Häkli
10d1c60027
Allow Python >= 3.7 for RTD compatibility
...
Documentation autobuilder fails if Python 3.7
is not permitted for package installations in RTD
2023-05-17 20:39:56 +03:00
Aleksi Häkli
84e5e357e6
Version 6
2023-05-17 20:33:11 +03:00
Aleksi Häkli
33cfcb9656
Drop Python 3.7 support
2023-05-17 20:33:11 +03:00
dependabot[bot]
d463787e34
chore(deps): bump pytest-subtests from 0.10.0 to 0.11.0
...
Bumps [pytest-subtests](https://github.com/pytest-dev/pytest-subtests ) from 0.10.0 to 0.11.0.
- [Changelog](https://github.com/pytest-dev/pytest-subtests/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-subtests/compare/0.10.0...v0.11.0 )
---
updated-dependencies:
- dependency-name: pytest-subtests
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-16 00:31:42 +03:00
Aleksi Häkli
1965d2f2ba
Update CHANGES.rst
...
Version 6.0.0b5
2023-05-15 00:42:13 +03:00
Maksim Zayakin
58d5b491d8
test: add deprecation check for is_admin_site, add is_admin_request tests
2023-05-14 23:01:58 +03:00
Maksim Zayakin
117db49091
feat: add is_admin_request, deprecate is_admin_site
2023-05-14 23:01:58 +03:00
Aleksi Häkli
102cdc3ecf
Fix typo
2023-05-13 14:52:37 +03:00
Aleksi Häkli
1e7e85e101
Improve documentation
2023-05-13 14:43:20 +03:00
dependabot[bot]
fe130af344
Bump mypy from 1.2.0 to 1.3.0
...
Bumps [mypy](https://github.com/python/mypy ) from 1.2.0 to 1.3.0.
- [Commits](https://github.com/python/mypy/compare/v1.2.0...v1.3.0 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Aleksi Häkli <aleksi.hakli@iki.fi>
2023-05-13 14:27:28 +03:00
Aleksi Häkli
3e13c8f85e
Version 6.0.0b4
2023-05-13 14:09:12 +03:00
Maksim Zayakin
f6e272cb61
docs: add AXES_LOCKOUT_PARAMETERS` entires
2023-05-13 14:04:14 +03:00
Maksim Zayakin
3cba78a599
refactor: fix qa errors
2023-05-13 14:04:14 +03:00
Maksim Zayakin
c66bb1fb2b
test: add new client parameters tests
2023-05-13 14:04:14 +03:00
Maksim Zayakin
166c431b25
test: add callable AXES_LOCKOUT_PARAMETERS test cases and tests with wrong lockout parameters
2023-05-13 14:04:14 +03:00
Maksim Zayakin
43cc1ef39e
test: add new login tests
2023-05-13 14:04:14 +03:00
Maksim Zayakin
0823584b02
refactor: fix prospector errors
2023-05-13 14:04:14 +03:00
Maksim Zayakin
73c4e4501b
chore: adjust types: use list instead of iterables and nested lists instead of tuples
2023-05-13 14:04:14 +03:00
Maksim Zayakin
d5c6073bd7
test: use AXES_LOCKOUT_PARAMETERS in login test
2023-05-13 14:04:14 +03:00
Maksim Zayakin
a12c8bd6da
test: use AXES_LOCKOUT_PARAMETERS in logging test
2023-05-13 14:04:14 +03:00
Maksim Zayakin
7ee8573939
test: use AXES_LOCKOUT_PARAMETERS in helpers test
2023-05-13 14:04:14 +03:00
Maksim Zayakin
7cb0144770
test: use AXES_LOCKOUT_PARAMETERS in handlers test
2023-05-13 14:04:14 +03:00
Maksim Zayakin
c3586ac3dc
test: use AXES_LOCKOUT_PARAMETERS in attempts test
2023-05-13 14:04:14 +03:00
Maksim Zayakin
8d4a0aa052
chore!: pass request and credentials to get_client_parameters
2023-05-13 14:04:14 +03:00
Maksim Zayakin
1e3d41228d
feat!: implement reset_request using get_lockout_parameters
2023-05-13 14:04:14 +03:00
Maksim Zayakin
476d3f52bc
chore: use get_lockout_parameters in handlers
2023-05-13 14:04:14 +03:00
Maksim Zayakin
07539ff3d7
chore!: use AXES_LOCKOUT_PARAMETERS in app init log message
2023-05-13 14:04:14 +03:00
Maksim Zayakin
2df1c1948a
refactor: refactor get_client_parameters
...
* Now accepts request_or_attempt and credentials which are passed to get_lockout_parameters
* Use lockout parameters that consumed from get_lockout_parameters
2023-05-13 14:04:14 +03:00
Maksim Zayakin
59a57386c1
feat: add get_lockout_parameters
...
Accepts request or AccessAttempt and optionally credentials. If AXES_LOCKOUT_PARAMETERS is callable, this function passes request or attempt and credentials to this callable and returns the result.
If AXES_LOCKOUT_PARAMETERS is iterable, returns AXES_LOCKOUT_PARAMETERS.
Otherwise raises TypeError.
2023-05-13 14:04:14 +03:00
Maksim Zayakin
97022a460d
chore!: deprecate params related to lockout parameters resolution
2023-05-13 14:04:14 +03:00
Maksim Zayakin
ffc161e814
feat!: add AXES_LOCKOUT_PARAMETERS flag
...
BREAKING CHANGE: add `AXES_LOCKOUT_PARAMETERS` flag which accepts an iterable of keys or a callable that resolves an iterable.
The key can be a string (represents a single parameter) or an Iterable of strings (represents a combined parameter).
For example, using this parameters
```python
AXES_LOCKOUT_PARAMETERS = [
"ip_address",
("username", "user_agent"),
]
```
axes will block users by IP and/or combination of username and user agent
2023-05-13 14:04:14 +03:00
Maksim Zayakin
9dfea8bf8e
chore: fix inaccuracies in russian locale
2023-05-13 13:53:57 +03:00
dependabot[bot]
79660a7cc2
Bump prospector from 1.9.0 to 1.10.0
...
Bumps [prospector](https://github.com/PyCQA/prospector ) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/PyCQA/prospector/releases )
- [Changelog](https://github.com/PyCQA/prospector/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/PyCQA/prospector/compare/v1.9.0...1.10.0 )
---
updated-dependencies:
- dependency-name: prospector
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-13 13:45:45 +03:00
Aleksi Häkli
b985981d11
Update supported Django versions specifiers
2023-05-01 21:39:04 +03:00
Aleksi Häkli
ad2f21a856
Revert language change
2023-05-01 21:34:33 +03:00
Aleksi Häkli
9b7b1e6aac
Version 6.0.0b3
2023-05-01 21:31:16 +03:00
Aleksi Häkli
8386f30dbb
Fix type annotations for cache utilities
2023-05-01 21:27:47 +03:00