Commit Graph

59 Commits

Author SHA1 Message Date
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
Valentin Samir a6cf8aaa20
Fix invalid escape sequence \. in regular expression \\. 2019-01-12 12:01:12 +01: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 290701e07f Changes for Django 2.0 support 2018-04-29 20:10:19 +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
Jorik Kraaikamp 951dc60e99 Fixed some major mistyping and added the default setting. 2017-03-29 16:57:27 +02:00
Jorik Kraaikamp 224202c5c2 Added a setting to turn of the messages about the service 2017-03-29 15:36:12 +02:00
Valentin Samir b80947755a Add module tests.auth a docstring 2016-10-07 15:36:11 +02:00
Valentin Samir f1fed48b21 Add ldap bind auth method and CAS_TGT_VALIDITY parameter. Fix #18 2016-10-07 15:27:43 +02:00
Valentin Samir 6185e9c68c Fix more spelling and grammar errors 2016-09-18 11:40:03 +02:00
Valentin Samir c7171bb386 Add a test for login with missing parameter (username or password or both) 2016-09-10 15:24:30 +02:00
Valentin Samir 94c2168af1 Add Django 1.10 support 2016-08-25 13:02:45 +02:00
Valentin Samir 6b007f3960 Add CAS_INFO_MESSAGES tests 2016-08-24 18:20:12 +02:00
Valentin Samir cd57f101bc Fix english typos in tests 2016-08-24 18:01:59 +02:00
Valentin Samir 14a459b128 Add a validator to models CharField that should be regular expressions 2016-08-21 09:07:43 +02:00
Valentin Samir da796c6e01 Corrects various errors spoted by travis and codacy 2016-08-06 11:44:58 +02:00
Valentin Samir d46428520f Code factorisation in models.py 2016-08-05 17:56:34 +02:00
Valentin Samir 6442040095 Add templatetags tests 2016-08-02 17:10:42 +02:00
Valentin Samir 99d335e85d Enable logging to stderr then running tests 2016-08-01 18:36:12 +02:00
Valentin Samir d053003344 Add test for ldap check password with bad base64 hash 2016-08-01 18:33:58 +02:00
Valentin Samir d25f738b03 Add unit test for utils.dictfetchall 2016-08-01 18:29:05 +02:00
Valentin Samir c6583c925e Support authentication renewal in federate mode 2016-08-01 17:36:33 +02:00
Valentin Samir 2a1c90965c Add a checkbox to forget the identity provider if we checked "remember the identity provider" 2016-08-01 12:01:53 +02:00
Valentin Samir 0237364d8e Only set "remember my provider" in federated mode upon successful authentication 2016-08-01 11:34:49 +02:00
Valentin Samir aae3a0186e Factorize froms.py 2016-07-31 20:30:27 +02:00
Valentin Samir b45f8df09e Remove english "translation" and use full english text in the sources. Update french translation. 2016-07-30 01:34:43 +02:00
Valentin Samir 34118833bf Display an error message on bad response from identity provider in federate mode. fix #7.
If the identity provider CAS do not return an XML document as specified on ticket validation,
an XML parsing error is raised. We now catch it and display a message to the user.
2016-07-29 16:35:21 +02:00
Valentin Samir 570676f5b0 fix some codacy errors 2016-07-29 15:18:10 +02:00
Valentin Samir 3063cf116b few flake8 and python3 problems corrected 2016-07-29 14:55:52 +02:00
Valentin Samir b6cffcf482 Add new version email and info box then new version is available 2016-07-29 14:33:39 +02:00
Valentin Samir 6eea76d984 Add pytest-warning to tests and correct some warnings, complete coverage (essentially branch) 2016-07-29 13:58:32 +02:00
Valentin Samir 3ff4bb16a9 Drop dependancies django-picklefield and django-bootstrap3 2016-07-24 10:51:29 +02:00
Valentin Samir ff9566289d Add missing docstrings 2016-07-23 19:12:44 +02:00
Valentin Samir 9bae371199 Add serviceValidate ProxyTicket tests 2016-07-23 18:47:32 +02:00
Valentin Samir 004e76f29e Remove tests unused variable 2016-07-20 18:41:52 +02:00
Valentin Samir c8a22f6c92 Remove tests unused variable 2016-07-20 18:30:36 +02:00
Valentin Samir 502135d6ca Fix bug: the renewing authentication, it is ok for the service to not require renew 2016-07-06 13:16:31 +02:00
Valentin Samir abf0200f87 Add a test case related to 6b3b280d31 2016-07-05 13:09:52 +02:00
Valentin Samir 6b3b280d31 Add some logging and only permit backend CAS auth if the user is not already authenticated 2016-07-04 22:54:15 +02:00
Valentin Samir aa433d3c58 Use django admin application to add/modif identty providers when CAS_FEDERATE is True 2016-07-04 17:23:11 +02:00
Valentin Samir 9909699012 Update sime legal headers 2016-07-03 18:11:48 +02:00
Valentin Samir 8e5b75e090 Add some docstrings 2016-07-03 17:54:11 +02:00
Valentin Samir 7cc3ba689f Correct some code style errors and remove some forgotten debug lines 2016-07-03 14:19:39 +02:00
Valentin Samir 90daf3d2a0 Add unit tests for when CAS_FEDERATE is True
Also fix some unicode related bugs
2016-07-03 13:53:12 +02:00
Valentin Samir 63f5b2cabf Merge branch 'master' into federate 2016-07-01 16:44:22 +02:00
Valentin Samir 95511943e8 Add a utils function to test crypt salts 2016-07-01 01:21:57 +02:00
Valentin Samir a5ed74ee56 SOme python3 compatibility 2016-07-01 00:09:51 +02:00
Valentin Samir 219171fe41 Set legals headers 2016-07-01 00:02:46 +02:00
Valentin Samir 7cbbab444f Full utils coverage 2016-07-01 00:00:33 +02:00