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
Paul Marillonnet
d46d94bb95
python3: use django.utils.six.BytesIO ( #31152 )
2019-04-01 17:18:12 +02:00
Paul Marillonnet
cb10c41b0f
python3: remove deprecated unicode builtin ( #31151 )
2019-04-01 17:05:10 +02:00
Benjamin Dauvergne
b8998657cd
api: do not check for email unicity if no change is made ( fixes #31822 )
2019-03-28 17:12:39 +01:00
Frédéric Péters
ebee7aa145
tests: check update user with same email ( #31822 )
2019-03-28 16:55:29 +01:00
Benjamin Dauvergne
3988b6fb37
ldap: set default timeout to 5 seconds ( fixes #29386 )
...
Also change behaviour to set the network *and* default timeout, see
ldap.conf(5) :
NETWORK_TIMEOUT <integer>
Specifies the timeout (in seconds) after which the poll(2)/select(2)
following a connect(2) returns in case of no activity.
TIMEOUT <integer>
Specifies a timeout (in seconds) after which calls to synchronous
LDAP APIs will abort if no response is received. Also used for any
ldap_result(3) calls where a NULL timeout parameter is supplied.
2019-03-25 17:07:00 +01:00
Benjamin Dauvergne
a31a99b13f
settings: move LDAP authentication backend after model ( #29386 )
2019-03-25 17:07:00 +01:00
Benjamin Dauvergne
31dc47946d
Jenkinsfile: move cleaning action in post/cleanup section ( #31437 )
2019-03-21 11:38:52 +01:00
Serghei Mihai
4c04187f47
misc: fix authenticator var name ( #31607 )
2019-03-20 18:10:20 +01:00
Paul Marillonnet
eba733dad4
python3: add a getlasso3.sh script ( #31161 )
2019-03-20 17:57:47 +01:00
Paul Marillonnet
7000c4d86b
python3: discard tabs in python source files ( #31158 )
2019-03-20 17:10:44 +01:00
Paul Marillonnet
af95b1bb0a
python3: encode oidc secret before calling crypto primitives ( #31172 )
2019-03-20 16:55:19 +01:00
Paul Marillonnet
e06405d027
python3: use django.utils.six.moves builtins ( #31153 )
2019-03-20 14:39:05 +01:00
Paul Marillonnet
bd268e72c8
python3: remove deprecated string.letters ( #31150 )
2019-03-20 13:01:23 +01:00
Paul Marillonnet
b836b818e7
python3: remove dict.iteritems in py files and django templates ( #31149 )
2019-03-20 12:29:30 +01:00
Paul Marillonnet
b623aaf509
python3: 'object' builtin class constructor takes no parameter ( #31147 )
2019-03-20 12:25:10 +01:00
Paul Marillonnet
01d49edb56
users api: unset verified flag on a modified email address ( #30740 )
2019-03-20 11:01:46 +01:00
Paul Marillonnet
13766a37fd
manager: unset verified flag on a modified email address ( #30740 )
2019-03-20 11:01:17 +01:00
Benjamin Dauvergne
9ff75d0a86
tests: allocate slapd TCP port using bind and SO_REUSEADDR ( fixes #31339 )
2019-03-19 23:46:41 +01:00
Benjamin Dauvergne
a278da5251
idp_saml: fix unused parameter in log call ( #30963 )
2019-03-19 23:40:22 +01:00
Benjamin Dauvergne
43b3f5ddb1
Jenkinsfile: use pg_virtualenv to isolate test database ( #31437 )
2019-03-19 18:08:43 +01:00
Benjamin Dauvergne
d361088985
Jenkinsfile: use a TMPDIR for tox ( #31437 )
2019-03-19 18:08:43 +01:00
Benjamin Dauvergne
6964b0cc82
idp_oidc: export claim even if source attribute is absent ( fixes #27540 )
2019-03-19 15:32:37 +01:00
Benjamin Dauvergne
ce1b796473
idp_oidc: use force_bytes/text and six.text_type instead of smart_bytes and unicode ( #27540 )
...
Just some cleaning, not really related to #27540 .
2019-03-19 15:32:37 +01:00
Benjamin Dauvergne
d856fc07ca
js: keep last selected ou on login form ( fixes #31329 )
2019-03-19 14:03:44 +01:00