Benjamin Dauvergne
edece01766
auth_oidc: fix log template in backends.py ( fixes #32505 )
2019-04-19 20:01:54 +02:00
Benjamin Dauvergne
8d91ba556c
saml: use RSA-SHA256 signature method ( #32011 )
2019-04-19 11:05:56 +02:00
Paul Marillonnet
2864f57af9
python3: use DjangoWebtestResponse.text in test_idp_oidc ( #32445 )
2019-04-19 08:25:14 +02:00
Benjamin Dauvergne
52edd31e3f
manager: replace $UUID pattern in next parameter of UserAddView ( fixes #32140 )
2019-04-18 11:34:20 +02:00
Benjamin Dauvergne
354a215ab3
manager: accept a cancel_url parameter on UserAddView ( #32140 )
2019-04-18 11:34:20 +02:00
Benjamin Dauvergne
bddada5acd
utils: allow string replacement in next parameters ( #32140 )
...
The caller must explicitely give the replacement it covers through the
replace argument taking a dictionnary. The dictionnary keys are the
replacement pattern as simple strings, dictionnary values are the
replacement substitution. The replacement substitution is encoded with
urlparse.quote() before replacement.
2019-04-18 11:34:20 +02:00
Benjamin Dauvergne
16aa682aa1
utils: allow overriding REDIRECT_FIELD_NAME in select_next_url() ( #32140 )
...
A view can have different next_url depending on its final state
(cancel, ok, etc..)
2019-04-18 11:34:20 +02:00
Benjamin Dauvergne
279788672a
tests: code style and PEP8 ( #32140 )
2019-04-18 11:34:20 +02:00
Paul Marillonnet
901d40798b
python3: ascii-encode json dumps while testing site imports ( #31185 )
2019-04-17 12:47:10 +02:00
Paul Marillonnet
2af185ea6a
python3: ascii-encode saml provider id before hashing it ( #31183 )
2019-04-17 12:45:09 +02:00
Paul Marillonnet
4c9a4359aa
python3: add getlasso3 script to MANIFEST.in ( #32402 )
2019-04-17 12:14:24 +02:00
Paul Marillonnet
c8249b4cfb
python3: idp cas service urls getter ( #32400 )
2019-04-17 12:13:12 +02:00
Paul Marillonnet
e6ddc1cdd3
python3: retrieve python-ldap major version number ( #32399 )
2019-04-17 12:11:13 +02:00
Paul Marillonnet
d71b7533e1
python3: deprecate __metaclass__ attribute ( #31182 )
2019-04-16 17:29:39 +02:00
Paul Marillonnet
f7d2fb10df
python3: use binascii's hexadecimal encoding "hexlify" ( #31163 )
2019-04-16 17:12:50 +02:00
Christophe Siraut
00db0f3350
debian: bump debhelper compatibility level ( #32260 )
2019-04-16 14:28:07 +02:00
Benjamin Dauvergne
05d68af54e
auth_oidc: compare token_type case insensitively ( fixes #32281 )
2019-04-15 11:50:32 +02:00
Benjamin Dauvergne
532e5b2066
jenkins.sh: use fsync=off and allocate a port manually for pg_virtualenv ( fixes #32218 )
2019-04-12 18:05:45 +02:00
Benjamin Dauvergne
c6749111ad
tests: adapt to new gadjo version ( fixes #32238 )
2019-04-12 14:50:07 +02:00
Benjamin Dauvergne
9d945a6ecd
tox.ini: use --random-group instead of --random with pytest
2019-04-12 14:49:18 +02:00
Benjamin Dauvergne
3ead3d2ee3
utils: use ou slug in template names for mails ( fixes #32236 )
2019-04-12 13:35:25 +02:00
Benjamin Dauvergne
e2ad31601e
tests: add oidc tests on claim's default values ( #31749 )
2019-04-10 17:22:10 +02:00
Benjamin Dauvergne
57fc514a94
idp_oidc: use empty string as default value for known claims ( #31749 )
2019-04-10 17:22:10 +02:00
Benjamin Dauvergne
32daf24ae6
idp_oidc: only set default_value for claims requested by the scopes ( #31749 )
2019-04-10 17:20:30 +02:00
Benjamin Dauvergne
56dd857a39
user: fix hasattr() on attributes ( fixes #32040 )
2019-04-07 16:18:12 +02:00
Benjamin Dauvergne
ff92cb1fb9
user: replace all uses of Attribute.set_value() ( #31937 )
2019-04-05 13:08:31 +02:00
Benjamin Dauvergne
1079ac2e00
user: add command to fix storage of first_name/last_name attributes ( #31937 )
2019-04-05 13:08:31 +02:00
Benjamin Dauvergne
b72b11cb83
user: fix cache errors on first_name/last_name handling ( fixes #31937 )
...
first_name/last_name are not updated anymore inside
Attribute.set_value() but only through the Attributes object.
In User.save() we first compare current values of first/last_name before
resetting the corresponding AttributeValue, i.e. if the value does not
change we never reset the verified status.
A map cache of attributes values is kept in user._a2_attributes_cache to
reduce the number of queries when modifying attributes.
2019-04-05 13:08:31 +02:00
Benjamin Dauvergne
085a1b0270
code style ( #31937 )
2019-04-04 18:46:43 +02:00
Benjamin Dauvergne
0d74afcc5d
pep8 ( #31937 )
2019-04-04 18:46:43 +02:00
Paul Marillonnet
47566924f9
python3: make the exp retry timeout 'seconds_to_wait' return an int ( #31166 )
2019-04-04 18:18:32 +02:00
Paul Marillonnet
6d856ad3ca
python3: remove "execfile", which isn't a builtin anymore ( #31145 )
2019-04-02 14:20:08 +02:00
Paul Marillonnet
e2d868a684
oidc authn: test id token required claims ( #31863 )
2019-04-02 11:27:46 +02:00
Paul Marillonnet
8ece5c7fa7
import site: show proper option help message ( #31709 )
2019-04-02 11:26:00 +02:00
Paul Marillonnet
360b05a38c
python3: PIL.Image.open takes a file path as first paramater ( #31179 )
2019-04-01 20:01:11 +02:00
Paul Marillonnet
8be5cc7464
python3: use six.binary_type in saml PickledObject base field ( #31178 )
2019-04-01 19:49:01 +02:00
Paul Marillonnet
50ca3f65b7
python3: make OIDC sub generation functions return text objects ( #31170 )
2019-04-01 19:47:24 +02:00
Paul Marillonnet
12ebfd5a3a
python3: handle minor encoding variation in test_api ( #31176 )
2019-04-01 19:38:46 +02:00
Paul Marillonnet
66ab1d16d9
python3: compare test strings against DjangoWebtestResponse.text ( #31169 )
2019-04-01 19:26:55 +02:00
Paul Marillonnet
f42b3576ad
python3: encode pickle-cached data ( #31174 )
2019-04-01 19:18:15 +02:00
Paul Marillonnet
f2d9f0d6d8
ldap_backend: skip authentication on wrong user filter ( #31590 )
2019-04-01 18:53:38 +02:00
Paul Marillonnet
130062be4d
python3: same encoding and unquoting on two compared urls in tests ( #31168 )
2019-04-01 18:31:31 +02:00
Paul Marillonnet
7c38eaff9d
python3: fix credential encoding in main unit test file ( #31167 )
2019-04-01 18:27:56 +02:00
Paul Marillonnet
59d5f2a951
python3: use django.utils.six.moves.reduce ( #31165 )
...
as reduce is not a builtin anymore
2019-04-01 18:14:34 +02:00
Paul Marillonnet
907c1fd70f
remove unused threading library import ( #31164 )
2019-04-01 18:12:50 +02:00
Paul Marillonnet
34a2aa5bd3
python3: adapt to uuid module interface change ( #31162 )
2019-04-01 18:04:16 +02:00
Paul Marillonnet
7e49ebc6e2
python3: restrict pytest version for tox ( #31160 )
2019-04-01 17:59:33 +02:00
Paul Marillonnet
a55e3eae3b
warn user after account self-deletion ( #26910 )
2019-04-01 17:51:25 +02:00
Paul Marillonnet
b9fa40a204
python3: remove deprecated basestring builtin ( #31159 )
2019-04-01 17:29:01 +02:00
Paul Marillonnet
67b3c96ebd
remove unused import of httplib ( #31156 )
2019-04-01 17:25:30 +02:00