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
Valentin Samir
4df2991079
Fix migration error for pgsql: column "provider_id" cannot be cast automatically to type integer
2016-07-06 13:50:02 +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
17228baec7
tox.ini: we need Django to compute coverage
2016-07-05 13:09:16 +02:00
Valentin Samir
37bb766245
Merge pull request #6 from nitmir/federate
...
Add a federated mode.
When the settings CAS_FEDERATE is True, django-cas-server will offer to the user to choose its CAS backend to authenticate. Hence the login page do not display anymore a username/password form but a select form with configured CASs backend.
This allow to give access to CAS supported applications to users from multiple organization seamlessly.
It was originally developped to mach the need of https://myares.fr (Federated CAS at https://cas.myares.fr , example of an application using it as https://chat.myares.fr )
2016-07-05 12:54:44 +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
624f2f48ed
Add a docstring to admin.py
2016-07-04 20:02:00 +02:00
Valentin Samir
b0a07efe41
Add a display field to Identity Providers
2016-07-04 17:40:31 +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
40b4f07001
Merge branch 'master' into federate
2016-07-03 19:52:47 +02:00
Valentin Samir
097edfd9dd
Optimise tox and travis
2016-07-03 19:46:52 +02:00
Valentin Samir
d6c6bac5eb
Add federated mode to features list in README.rst
2016-07-03 18:44:00 +02:00
Valentin Samir
36b165b699
Merge branch 'master' into federate
2016-07-03 18:43:14 +02:00
Valentin Samir
323f200afc
Add a TOC to README.rst
2016-07-03 18:40:11 +02:00
Valentin Samir
646cdba6aa
Do not display messages if auto_submit is True and javascript is enabled
2016-07-03 18:12:02 +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
fcd906ca78
Tweak the cas client lib to always return unicode
...
hence, the behaviour is consistent between python2 and python3
2016-07-03 13:49:31 +02:00
Valentin Samir
2f1b3862ff
Exclude cas_server/cas.py from coverage as it is an external lib
2016-07-02 23:24:50 +02:00
Valentin Samir
63f5b2cabf
Merge branch 'master' into federate
2016-07-01 16:44:22 +02:00
Valentin Samir
a1edd2f31f
Use rst2html instead of setup.py check cause there is a fixed bug on ubuntu 12.04
...
an that this is the OS travis use. cf https://bugs.python.org/issue23063
2016-07-01 03:20:58 +02:00
Valentin Samir
c2b146335f
Fix somme RST errors in README.rst. Add a test in tox.ini to detect such errors
2016-07-01 02:38:36 +02:00
Valentin Samir
e3ab64271b
Update version to 0.5.0
2016-07-01 01:58:30 +02:00
Valentin Samir
0648c2cf7c
Add six dependancy to setup.py
2016-07-01 01:56:48 +02:00
Valentin Samir
eb64412612
Merge pull request #5 from nitmir/dev
...
Unit tests full coverage
2016-07-01 01:26:41 +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
Valentin Samir
43b4a7ca61
Exclude tests from coverage
...
tests are necesserally 100% coverage so it make no sense
2016-06-30 23:59:19 +02:00
Valentin Samir
c7c5151acf
Tests comments and move http server handlers from cas_server.utils to cas_server.tests.utils
2016-06-30 23:13:53 +02:00