Commit Graph

34 Commits

Author SHA1 Message Date
Valentin Samir
1dba4fea95 Support for ldap3 version 2 or more (changes in the API)
All exception are now in ldap3.core.exceptions, methodes for fetching
attritutes and dn are renamed.
2017-03-29 14:34:58 +02:00
Valentin Samir
443c87fa40 Do not try to bind if the user dn was not found with LDAP auth backend
Then using the LDAP auth backend with ``bind`` method for password check, do not try to bind
if the user dn was not found. This was causing the exception
``'NoneType' object has no attribute 'getitem'`` describe in #21
2017-03-29 14:28:36 +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
da796c6e01 Corrects various errors spoted by travis and codacy 2016-08-06 11:44:58 +02:00
Valentin Samir
ed5e3d5226 Unfold many to many attributes in auth.DjangoAuthUser 2016-08-06 11:31:39 +02:00
Valentin Samir
29522aad4e Usage of the documented API for models _meta 2016-08-06 11:09:52 +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
d812257daa Exclude a should not happen branche from coverage in auth.TestAuthUser.attributs 2016-07-20 18:56:01 +02:00
Valentin Samir
cec0cadb7a Add some docs using sphinx autodoc 2016-07-20 18:29:00 +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
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
219171fe41 Set legals headers 2016-07-01 00:02:46 +02:00
Valentin Samir
6972ad7536 Add some docstrings and comments 2016-06-29 00:25:09 +02:00
Valentin Samir
dedc1e34a2 Fix some style error introduced during the merge 2016-06-28 00:37:18 +02:00
Valentin Samir
32b5627c38 Merge branch 'dev' into federate 2016-06-28 00:34:31 +02:00
Valentin Samir
7db3157864 Forgotten return 2016-06-27 14:01:39 +02:00
Valentin Samir
2fac47f0b1 Add unit test for the utils function check_password 2016-06-26 21:44:41 +02:00
Valentin Samir
ac206d56d6 Add some password check methods to the MySQL auth backend 2016-06-26 20:29:47 +02:00
Valentin Samir
8303f816df Exclude non test auth from coverage 2016-06-26 15:34:26 +02:00
Valentin Samir
ac5f359063 style 2016-06-26 11:26:19 +02:00
Valentin Samir
5cb25de99f Put test username, password, attributes in settings 2016-06-24 21:06:36 +02:00
Valentin Samir
efdd97ec07 Test for CAS federation 2016-06-17 19:28:49 +02:00
Valentin Samir
494da62935 Fix MysqlAuthUser when number of results != 1, typo in README 2015-12-19 17:14:02 +01:00
Valentin Samir
78f4538f6a Update README 2015-12-12 17:26:19 +01:00
Valentin Samir
39557d1942 PEP8 2015-06-12 18:12:35 +02:00
Valentin Samir
41fcc06200 MysqlAuthUser use return username for case 2015-06-09 16:42:28 +02:00
Valentin Samir
9a4c6b9d7a some cosmetics 2015-05-27 22:18:01 +02:00
Valentin Samir
1fcb0a7110 copyright notice 2015-05-27 22:10:06 +02:00
Valentin Samir
ad434a113f Some refactoring 2015-05-27 21:56:39 +02:00
Valentin Samir
9112e6e475 Some login backends 2015-05-17 23:24:41 +02:00