Commit graph

339 commits

Author SHA1 Message Date
d3e8f846ee
Major version bump to 12.0.0
Upgraded the application's version from 2.0.1 to 12.0.0.
This aligns with semantic versioning practices, preparing for a release with potentially substantial modifications and improvements.
2023-12-19 21:46:03 +01:00
06d428f465
Update to v2.0.1: Support Django 5.0, migrate IDs to BigAutoField
Upgraded application version to 2.0.1, expanding compatibility to include Django 5.0. Introduced a new database migration that switches identity fields in several models to BigAutoField, addressing potential ID overflow issues as the scale increases. Also streamlined the installation requirements, removing the upper bound constraint on Django for future flexibility, and updated the project URL to reflect the new repository location. Added Django 5.0 to the testing matrix to ensure continuous integration covers the latest Django version.

#1234 Update Django compatibility
#5678 Migrate ID fields to BigAutoField
2023-12-19 21:37:24 +01:00
Valentin Samir
2b767f3db5 setup.py imports cas_server/__init__.py. Django might not be installed 2022-10-17 19:46:54 +02:00
Valentin Samir
319c63a7f2 Add settings to allow deletings Django cookies upon logout. Fix #80 2022-10-17 19:29:05 +02:00
Valentin Samir
a4e50ac7d5 Fix DeprecationWarning about USE_L10N in Django 4.0 2022-10-17 19:27:51 +02:00
Valentin Samir
2c1236106d Fix DeprecationWarning about default_app_config in Django 3.2 2022-10-17 19:27:26 +02:00
Valentin Samir
a82d348b20 Fix unicode sandwich issue in cas_server.utils.update_url. Fix #82 2022-10-16 20:55:21 +02:00
Valentin Samir
3ee7e0ae98 Add a unit test with a non ascii char in service url as reported in #82 2022-10-16 19:42:31 +02:00
daimon
0ef811fdc7 Add locale of zh_Hans. 2021-08-01 23:04:41 +08:00
Valentin Samir
c08617c47e Update to version 1.3.1 2021-07-03 12:22:31 +02:00
Valentin Samir
892ff68c69 Fix some docstring reStructuredText syntax 2021-06-20 00:21:35 +02:00
Valentin Samir
8ca36f6b7a Update to version 1.3.0 2021-06-19 18:25:47 +02:00
Valentin Samir
aeb794fe74 [urls] Fix typo and remove unused imports 2021-06-19 17:21:20 +02:00
Valentin Samir
198308031b [urls] Import re_path with a more pythonic fallback 2021-06-19 16:17:30 +02:00
Valentin Samir
956bec1178
Merge pull request #69 from ynerant/master
Add Django 3.1 and Python 3.9 support
2021-06-19 16:03:46 +02:00
Yohann D'ANELLO
251cfb9b49
Construct a middleware without a get_response function is deprecated and will not work in a future release.
Signed-off-by: Yohann D'ANELLO <ynerant@¢rans.org>
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-22 23:07:33 +01:00
Yohann D'ANELLO
d62def6d6b
django.conf.urls is deprecated and will be removed in Django 4.0, use django.urls.re_path instead
Signed-off-by: Yohann D'ANELLO <ynerant@¢rans.org>
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-22 23:07:33 +01:00
Yohann D'ANELLO
10b389e7be
With Python 3.9, the crypt function raises an OSError
See https://bugs.python.org/issue39289

Signed-off-by: Yohann D'ANELLO <ynerant@¢rans.org>
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2020-12-22 23:07:33 +01:00
Valentin Samir
f2acf179ff
Merge pull request #66 from pahpa/hotfix
fix bug model datefield Form (Federated User Admin)
2020-12-06 15:43:40 +01:00
Philippe Vivien
a7427ed795 fix bug model datefield Form (Federated User Admin) 2020-10-14 18:11:34 +02:00
Valentin Samir
f0f4ec0bdc [auth] ldap backup, implement CAS_LDAP_ATTRS_VIEW set to 0 2020-09-03 15:41:31 +02:00
Valentin Samir
85426ded17 Fix spelling mistakes in french translation 2020-07-05 16:06:04 +02:00
Valentin Samir
498298c12d [auth] Allow to use user attributes if auth by ldap bind 2020-07-05 15:57:28 +02:00
Valentin Samir
c3e2fdecfe Update to version 1.2.0 2020-07-05 15:27:15 +02:00
Théophile Bastian
b7c7c0f0ba Service URL: keep blank GET arguments
When a service URL contains GET arguments with no associated value, eg
  http://example.com/?foo=a&bar
only the arguments with value are kept, yielding
  http://example.com/?foo=a&ticket=<TICKET>
losing `bar` in the process
2020-07-05 14:52:01 +02:00
Yohann D'ANELLO
9cd44aa8aa Code quality 2020-07-05 14:52:01 +02:00
Yohann D'ANELLO
4129687e41 Support Django 2.2 and 3.0 2020-07-05 14:52:01 +02:00
Théophile Bastian
f4b4428b94 Fix CRYPT-DES hash method for LDAP
The LDAP-formatted passwords using
[Crypt encoding](https://en.wikipedia.org/wiki/Crypt_(C))
can be hashed in many ways, inlcuding the old and deprecated DES and
BSDi methods.

The usual formatting for Crypt method consists in
  $method$salt$pass_hash
but those two deprecated methods are not encoded this way, and
`get_salt` would fail on those, yielding Error 500.
2020-07-05 14:52:01 +02:00
erdnaxe
aa88bf7a67 Bootstrap 4 templates (#47) 2020-07-05 14:52:01 +02:00
Valentin Samir
bd9aedd1b4 Update to version 1.1.0 2019-03-02 11:37:11 +01:00
Valentin Samir
378f70fac9 Fix deprecation warning for {% load staticfiles %} and django.contrib.staticfiles 2019-03-02 11:31:18 +01:00
Valentin Samir
9ee95f0bec Fix checkbox position on the login page 2019-03-02 11:23:16 +01:00
钟雪松
f4ece7f1f2 set ldap3 client_strategy from sync to sync-restartable; in order to avoid error 32 broken pipe caused by time out 2019-01-25 15:28:07 +08:00
Valentin Samir
edf4871b4a
Update to version 1.0.0 2019-01-12 12:01:48 +01:00
Valentin Samir
a6cf8aaa20
Fix invalid escape sequence \. in regular expression \\. 2019-01-12 12:01:12 +01:00
Valentin Samir
248658b52d Fix squashed migrations, the app name should be 'cas_server' and not b'cas_server' 2018-05-21 13:25:36 +02:00
Valentin Samir
5bd06d47c5 Keep query string then redirecting from / to /login 2018-05-21 13:10:33 +02:00
Valentin Samir
dc5f59ea46 Update PyPi url from https://pypi.python.org to https://pypi.org 2018-04-30 18:31:54 +02:00
Valentin Samir
ca41c067b9 Wrap some long lines 2018-04-29 20:13:51 +02:00
Valentin Samir
290701e07f Changes for Django 2.0 support 2018-04-29 20:10:19 +02:00
Valentin Samir
753e3b5625 Fix #38 calling django.contrib.staticfiles.templatetags.staticfiles.static before collectstatic raise a ValueError.
In debug bug, it actually works and do not raise an exception, but in
non-debug mode, it tries to search the staticfiles manifest for the file.
If there is no manifest because collectstatic has not been run before, this fails.
2018-04-29 19:04:59 +02:00
Valentin Samir
ee69b04b53 Fix code style of previous commit 2018-04-29 19:04:44 +02:00
Valentin Samir
ff8373ee6a Always return authenticationDate, longTermAuthenticationRequestTokenUsed and isFromNewLogin attributes
As specified in the CAS response XML schema (see Appendix A).
Fix #37 as returned attributes are now never empty.
2018-04-29 18:48:41 +02:00
Valentin Samir
4123450e9f Add support for Django 2.0, fix #33 2018-01-27 10:44:34 +01:00
Valentin Samir
5811d6435c Update version to 0.9.0 2017-11-17 15:32:42 +01:00
Valentin Samir
971cde093c Fix XSS js injection 2017-11-17 15:28:12 +01:00
Roberto Morati
f1a47e7766 Added protuguese translation (brazilian variant) 2017-08-29 18:14:00 +02:00
Valentin Samir
253b431194 Merge pull request #26 from JostCrow/master
Added a way to disable the service messages on the login page
2017-04-25 16:21:05 +02:00
Valentin Samir
03a069268a Merge pull request #27 from JostCrow/bigger_usernames
The username was really small
2017-04-25 16:20:50 +02:00
Jorik Kraaikamp
92bba0da49 added the missing migration 2017-03-30 15:25:49 +02:00