Benjamin Dauvergne
15aae1e96a
misc: use SystemRandom to generate passwords ( #43154 )
2020-05-20 16:46:51 +02:00
Benjamin Dauvergne
484ed13a1e
idp_saml2: make list of an iterator ( #43038 )
2020-05-19 12:07:43 +02:00
Frédéric Péters
6a5fe2af0b
manager: display csv import flag icons on their own line ( #43067 )
2020-05-19 11:00:06 +02:00
Benjamin Dauvergne
af57083fc8
tox.ini: add modifier to disable --sw
2020-05-18 18:33:00 +02:00
Benjamin Dauvergne
6c8091dbc1
admin: activate SessionAdmin with mellon backend ( #42852 )
2020-05-18 17:12:07 +02:00
Benjamin Dauvergne
dc2b4305ac
admin: add DeletedUserAdmin ( #41933 )
2020-05-18 16:21:59 +02:00
Benjamin Dauvergne
2b8d5e12ef
misc: move cleanupauthentic command ( #41933 )
2020-05-18 16:21:59 +02:00
Benjamin Dauvergne
bda672d59e
misc: add a DeletedUser model to keep metadata about deleted users ( #41933 )
2020-05-18 16:21:59 +02:00
Benjamin Dauvergne
5c6fd54baa
misc: remove server_error() view ( #42821 )
2020-05-18 16:07:13 +02:00
Benjamin Dauvergne
640286e7cb
misc: remove LoggingCollectorMiddleware ( #42821 )
2020-05-18 16:07:13 +02:00
Valentin Deniaud
54d11f9b9f
debian: add clean-unused-account to crontab ( #42995 )
2020-05-18 12:15:00 +02:00
Benjamin Dauvergne
cd5877690a
auth_fc: check request and session exist in hooks ( #42982 )
2020-05-16 11:37:55 +02:00
Benjamin Dauvergne
05ba0a10ff
misc: add settings to propagate exceptions in hooks ( #42982 )
2020-05-16 11:37:44 +02:00
Benjamin Dauvergne
eb83cad1f5
auth_fc: do not resolve next url ( #42822 )
2020-05-15 15:35:48 +02:00
Benjamin Dauvergne
dce9dcbb4b
dj22: decode response.content ( #42950 )
...
It seems that starting with Django 2.0 bytes are not automatically
decoded when used in templates, as py3 with Django 1.11 does not show
byte strings in login templates.
2020-05-15 11:32:39 +02:00
Paul Marillonnet
ef144f9657
validators: close smtp socket after email rcpt check ( #41791 )
2020-05-15 10:55:40 +02:00
Frédéric Péters
4722ed8d70
misc: use translatable labels for SAML homepage actions ( #42643 )
2020-05-15 10:54:54 +02:00
Benjamin Dauvergne
148642cced
misc: show deleted attribute in UserAdmin ( #41930 )
2020-05-15 10:49:47 +02:00
Benjamin Dauvergne
0f241a712c
misc: re-use logout view in deletion view ( #41930 )
...
As user is not accessible anymore through ModelBackend.get_user(), we
must call logout() directly, and not through a redirection.
2020-05-15 10:49:47 +02:00
Benjamin Dauvergne
5b07d440bc
backends: prevent authentication by deleted user ( #41930 )
2020-05-15 10:49:47 +02:00
Benjamin Dauvergne
9f0aa6ad3c
misc: replace DeletedUser model by attribute deleted on User ( #41930 )
2020-05-15 10:49:47 +02:00
Serghei Mihai
dd154d9170
widgets: use "date" input for dates ( #41605 )
2020-05-15 10:20:46 +02:00
Benjamin Dauvergne
a5d84366e2
tests: add __init__ files ( #41930 )
...
It prevents collisions between test files with the same basename.
2020-05-13 20:01:43 +02:00
Benjamin Dauvergne
9aea57f36e
debian: set logrotate user to authentic2 ( #42673 )
2020-05-12 23:56:12 +02:00
Benjamin Dauvergne
a35be9f28d
admin: force is_locked() to False in UserChangeForm ( #42694 )
...
Locked fields are implemented by renaming the form's fields with a
`@disabled' suffix. But it interacts badly with the Django admin
framework which expects all fields to always exist. The simplest fix for
that is to disable field locking in the admin views on User.
2020-05-12 23:55:53 +02:00
Benjamin Dauvergne
a3bf1cf609
misc: completely remove use of allow_lazy ( #42694 )
...
allow_lazy(func, *resultclass) signature differs from
keep_lazy(*resultclasses)(func) signature but it was replaced without
any regard to this difference and it broke AttributeAdmin as
attribute kinds labels use a lazyfied capfirst() function.
2020-05-12 23:55:49 +02:00
Benjamin Dauvergne
ce42f45e74
tests: prevent loading of a2 settings by rbac tests ( #42694 )
2020-05-11 23:53:40 +02:00
Benjamin Dauvergne
ce943b8d0e
tests: add verified attributes in User admin view test ( #42694 )
...
DEBUG must be activated in the template engine to see KeyError
exceptions during rendering of fields.
2020-05-11 21:24:23 +02:00
Benjamin Dauvergne
3402689158
tests: add test on Attribute admin view ( #42694 )
2020-05-11 21:24:20 +02:00
Benjamin Dauvergne
ca39de667f
idp_saml2: complete test with role's attributes ( #42657 )
2020-05-11 17:16:43 +02:00
Christophe Siraut
985459b79d
debian/authentic2.service: use full path in ExecStart
2020-05-11 11:02:11 +02:00
Frédéric Péters
816d4d775b
translations: adjust some apostrophes
2020-05-10 19:15:03 +02:00
Benjamin Dauvergne
38ed34d0fa
remove commented translations ( #42666 )
2020-05-10 18:58:39 +02:00
Benjamin Dauvergne
9cfb244e6b
translation update ( #42666 )
2020-05-10 18:58:37 +02:00
Benjamin Dauvergne
f56b012e12
idp_saml2: add test of add_attributes() with all kind of attributes ( #42657 )
2020-05-08 18:42:41 +02:00
Frédéric Péters
bbffe1bb8c
saml: convert querysets to proper lists ( #42656 )
2020-05-08 10:55:27 +02:00
Frédéric Péters
1c7ce14529
saml: deal with set attributes ( #42646 )
2020-05-07 23:33:12 +02:00
Frédéric Péters
e882fb1722
translation update
2020-05-07 21:18:23 +02:00
Benjamin Dauvergne
9fadcd5f9d
tests: GET the login page before POST, to prevent cookies message ( #42280 )
2020-05-07 18:37:30 +02:00
Benjamin Dauvergne
1a0e3d0c17
remove extra set_test_cookie ( #42280 )
2020-05-07 18:37:16 +02:00
Benjamin Dauvergne
a5e372707e
misc: test cookies are working in login view ( #42280 )
...
It's also tested in auth-fc login view.
2020-05-07 18:36:53 +02:00
Benjamin Dauvergne
3ab7b24503
data_transfer: use unicode_literals pragma ( #42584 )
2020-05-07 18:26:22 +02:00
Benjamin Dauvergne
63a9e9f8cc
misc: remove computed_targeted_id attribute source ( #42020 )
2020-05-07 16:53:06 +02:00
Benjamin Dauvergne
8b44f67d44
idp_saml2: produce edupersontargetedid attribute ( #42020 )
...
It's produced if directly used as edupersontargetedid attribute name or
if the special nid_format "edupersontargetedid" (it's not necessary
anymore but it's kept for retrocompatibility, it's the same as transient
now but with an attribute definition automatically created in
add_attributes()).
2020-05-07 16:53:06 +02:00
Benjamin Dauvergne
012cb64ba1
idp_saml2: factorize handling of XML attribute values ( #42020 )
2020-05-07 16:53:06 +02:00
Benjamin Dauvergne
5e87295adc
idp_saml2: do not force text on attribute tuples values ( #42020 )
2020-05-07 16:53:06 +02:00
Benjamin Dauvergne
c0e6d5b414
idp_saml2: add helpers to make eduPersonTargetedId ( #42020 )
2020-05-07 16:53:06 +02:00
Benjamin Dauvergne
4b6804bcc2
idp_saml2: do not thread metadata path around ( #42020 )
2020-05-07 16:53:06 +02:00
Benjamin Dauvergne
37294a4a67
saml: make migration 0018 elidable and reversible ( #42486 )
2020-05-07 16:52:12 +02:00
Benjamin Dauvergne
0dd9c2d76f
tox.ini: ignore warning between Django 1.11 and Python 3.8 ( #42504 )
2020-05-05 17:08:43 +02:00