Commit Graph

419 Commits

Author SHA1 Message Date
Valentin Samir
0237364d8e Only set "remember my provider" in federated mode upon successful authentication 2016-08-01 11:34:49 +02:00
Valentin Samir
0466d397f3 Move coverage computation last in travis 2016-08-01 02:10:53 +02:00
Valentin Samir
13c7359294 Remember warn using a cookie 2016-08-01 02:07:50 +02:00
Valentin Samir
aae3a0186e Factorize froms.py 2016-07-31 20:30:27 +02:00
Valentin Samir
2298b94f78 Add SqlAuthUser and LdapAuthUser auth classes. Deprecate the usage of SqlAuthUser in favor of SqlAuthUser.
SqlAuthUser use django databases management, and thus is compatible with all SQL databases supported
by django: postgresql, mysql, sqlite3 and oracle.

LdapAuthUser use the full pythonic ldap3 module
2016-07-31 17:09:27 +02:00
Valentin Samir
f0922e0300 Add secret as sensitive variables/post parameter for /auth 2016-07-31 12:28:10 +02:00
Valentin Samir
4721eb4f81 Catch base64 decode error on b64decode to raise our custom exception BadHash 2016-07-31 12:27:14 +02:00
Valentin Samir
fbc977c6bd Fix inversion between two gettext string 2016-07-30 19:20:52 +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
3d0f2496dd Put favicon (shortcut icon) URL in settings 2016-07-30 00:46:57 +02:00
Valentin Samir
fe90b7fed0 Since we drop django-boostrap3 dependancies, Django default minimal version is 1.7 2016-07-29 16:51:46 +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
2cc31ce5f5 [cas.py] factor the charset detection in a function 2016-07-29 16:34:39 +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
b168e0a642 typo in setup.py classifiers 2016-07-27 16:03:11 +02:00
Valentin Samir
8b27b8c5e0 Update version to 0.6.1 2016-07-27 16:01:23 +02:00
Valentin Samir
f5dcbfe8a1 Add latest doc badge 2016-07-27 15:51:16 +02:00
Valentin Samir
f837853043 Merge pull request #8 from nitmir/dev
Merge dev into master
2016-07-27 15:05:24 +02:00
Valentin Samir
d3b4e23027 Keep LoginTicket list upon fail authentication
It prevent the next login attemps to fail because of bad LT
2016-07-24 22:57:34 +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
d6b91033d4 Correct travis to stick python version to tox envs 2016-07-23 19:07:13 +02:00
Valentin Samir
df1d57bca1 Add python 3.5 tox/travis tests 2016-07-23 18:50:47 +02:00
Valentin Samir
018a5951a2 Update urlpattern for django 1.10 2016-07-23 18:47:52 +02:00
Valentin Samir
9bae371199 Add serviceValidate ProxyTicket tests 2016-07-23 18:47:32 +02:00
Valentin Samir
5f5f3595c8 Update README.rst put image link at the bottom of the document 2016-07-23 18:47:03 +02:00
Valentin Samir
1636860e48 Rules to publish wheel release 2016-07-23 18:46:36 +02:00
Valentin Samir
2ce03972e5 Include docs, Makefile, coverage config and tests config to source package 2016-07-23 18:45:55 +02:00
Valentin Samir
232aafcace Factorize some code 2016-07-23 18:45:31 +02:00
Valentin Samir
4127af0db1 Update doc 2016-07-23 18:42:31 +02:00
Valentin Samir
542a0351e8 Use https://badges.genua.fr for badges
Our own instance of https://shields.io/
2016-07-22 14:47:31 +02:00
Valentin Samir
d812257daa Exclude a should not happen branche from coverage in auth.TestAuthUser.attributs 2016-07-20 18:56:01 +02:00
Valentin Samir
8a4a4a833f Codacy warning about constant names 2016-07-20 18:46:33 +02:00
Valentin Samir
004e76f29e Remove tests unused variable 2016-07-20 18:41:52 +02:00
Valentin Samir
66b9daff68 Update default_settings.py for python3
In python 3 dict.items do not return a copied list so we force a copy
to avoid changing the global dict while iterating over it
2016-07-20 18:40:46 +02:00
Valentin Samir
c8a22f6c92 Remove tests unused variable 2016-07-20 18:30:36 +02:00
Valentin Samir
25f305b538 Reformat default_settings.py for documentation using sphinx autodoc 2016-07-20 18:30:17 +02:00
Valentin Samir
8caf9156aa Rename the unicode methode of ReturnUnicode in cas.py to prevent clash in spnhinx autodoc with unicode type 2016-07-20 18:29:34 +02:00
Valentin Samir
cec0cadb7a Add some docs using sphinx autodoc 2016-07-20 18:29:00 +02:00
Valentin Samir
28dd67cb32 Add the possibility to run tests with "setup.py test" 2016-07-10 11:50:20 +02:00
Valentin Samir
b1b7562e55 DO not display sphinx coverage for now
As it seems to not work
2016-07-07 00:09:49 +02:00
Valentin Samir
4d0d60155e Remove sphinx.ext.githubpages extension for docs 2016-07-06 19:52:48 +02:00
Valentin Samir
91dbe6bafb Add sphinx docs 2016-07-06 19:43:56 +02:00
Valentin Samir
6dc52e0ca5 Update some help_text dans docstrings 2016-07-06 19:43:09 +02:00
Valentin Samir
4ad4d13baa Compact federated mode migration 2016-07-06 14:44:15 +02:00
Valentin Samir
203eedc9e7 Update version to 0.6.0 2016-07-06 14:20:48 +02:00
Valentin Samir
df01c93c35 Update README.rst 2016-07-06 14:15:10 +02:00