Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
8a4c067
Add support for both report-only and content-security CSP headers
Jul 4, 2016
8a44433
Bump python-dateutil from 2.8.0 to 2.8.1
dependabot-preview[bot] Jul 30, 2020
c5adcff
Merge pull request #1 from MartinPetkov/dependabot/pip/python-dateuti…
MartinPetkov Jul 30, 2020
2c1e4d6
Address all pep8 errors
MartinPetkov Jul 30, 2020
0088d6a
Add other instances of settings.LOGIN_URL
MartinPetkov Jul 30, 2020
dd28473
Go back to Python 3.6
MartinPetkov Aug 6, 2020
b80522d
Merge branch 'master' into feature/44_support_both_csp_headers
MartinPetkov Aug 6, 2020
a5abb51
Add dep for docs tests
MartinPetkov Aug 6, 2020
34efd06
Merge pull request #50 from MartinPetkov/feature/44_support_both_csp_…
Gee19 Aug 19, 2020
f23b994
Update travis.yml to include docs build
Gee19 Aug 19, 2020
bc1d0b7
Ignore coverage report exit code in docs env
Gee19 Aug 20, 2020
b8da796
Merge pull request #90 from sdelements/publish_docs
Gee19 Feb 23, 2021
078e03d
Bump to version 0.13.1
Gee19 Feb 24, 2021
26b69fe
Update docs link in readme to point to master
Gee19 Feb 25, 2021
69a12d8
Add support for new Content-Type (#91)
jozo Mar 17, 2021
28ba05d
Bump version to 0.13.2
Gee19 Mar 18, 2021
aabca6b
Add support for Referrer-Policy
May 8, 2017
8590edc
Merge pull request #92 from sdelements/pr/59
Gee19 Jun 3, 2021
e464b8b
Bump version to 0.14.0
Gee19 Jun 3, 2021
24c3b9a
Merge branch 'master' into 87-support-named-login-urls
Jdsleppy Feb 8, 2022
a789b53
Make tox -epep8 pass
Jdsleppy Feb 8, 2022
b194bd1
Relax python-dateutil version constraint
Jdsleppy Feb 8, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# python compiled files
*.pyc
*.pyo
*.egg-info

# back up files from VIM / Emacs
*~
Expand Down
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ matrix:
env: DJANGO=2.2 TOXENV=py36-django22
- python: 3.6
env: DJANGO=3.0 TOXENV=py36-django30
- python: 3.6
env: DJANGO=3.0 TOXENV=docs

install:
- pip install tox
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This package offers a number of models, views, middlewares and forms to facilita

Automatically generated documentation of `django-security` is available on Read The Docs:

* [Django-security documentation](http://django-security.readthedocs.org/en/latest/)
* [Django-security documentation](http://django-security.readthedocs.org/en/master/)

# Requirements

Expand Down Expand Up @@ -119,6 +119,11 @@ or minimum configuration.
<td><b>DEPRECATED: </b>Will be removed in future releases.<br/>Adds the HTTP header attribute specifying compact P3P policy.
<td>Required.

<tr>
<td><a href="http://django-security.readthedocs.org/en/latest/#security.middleware.ReferrerPolicyMiddleware">ReferrerPolicyMiddleware</a>
<td>Specify when the browser will set a `Referer` header.
<td>Optional.

<tr>
<td><a href="http://django-security.readthedocs.org/en/latest/#security.middleware.SessionExpiryPolicyMiddleware">SessionExpiryPolicyMiddleware</a>
<td>Expire sessions on browser close, and on expiry times stored in the cookie itself.
Expand Down
2 changes: 1 addition & 1 deletion security/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ def validate(password):
raise ValidationError(message)
return validate


# The error messages from the RegexValidators don't display properly unless we
# explicitly supply an empty error code.

lowercase = RegexValidator(
r"[a-z]",
_("It must contain at least one lowercase letter."),
Expand Down
Loading