Commit Graph

31 Commits

Author SHA1 Message Date
Paul Marillonnet 3c6320596e accounts: allow unconditional “title” profile attribute edition (#88833)
gitea/authentic2-cut/pipeline/head This commit looks good Details
This edition used to be deactivated for accounts whose owner linked
their FranceConnect identity. Only deleting the link allowed for
attribute edition, rather inconvenient. Instead we make “title” be a
“crown” attribute, as opposed to its earlier “core” attribute role.
2024-04-17 14:50:07 +02:00
Benjamin Dauvergne 6576954c89 tests: fix test test_a2_hook_manager_modify_table (#84483)
gitea/authentic2-cut/pipeline/head This commit looks good Details
Table of users got a new column in #83261.
2023-12-08 12:04:14 +01:00
Benjamin Dauvergne 5ec29713db misc: remove redis specific code (#82579)
gitea/authentic2-cut/pipeline/head This commit looks good Details
It was used to aggregate statistics, those statistics are now part of
authentic2 standard features.
2023-10-19 10:58:36 +02:00
Benjamin Dauvergne eac6a4be92 misc: import pre-commit configuration from authentic
gitea/authentic2-cut/pipeline/head This commit looks good Details
2023-10-19 10:46:55 +02:00
Valentin Deniaud 6eda381331 misc: apply double-quote-string-fixer (#79788) 2023-08-16 10:12:23 +02:00
Emmanuel Cazenave 87585964f5 do not rely on pkg_resources (#46549)
gitea/authentic2-cut/pipeline/head This commit looks good Details
2023-03-22 17:21:12 +01:00
Paul Marillonnet 49ba23f4b0 hooks: add userinfo relevant crown attributes when profile is selected (#75398)
gitea/authentic2-cut/pipeline/head This commit looks good Details
2023-03-14 09:34:24 +01:00
Paul Marillonnet 46918eaec0 hooks: un-verify user attributes in FC unlink user action (#66577) 2023-02-13 12:27:48 +01:00
Paul Marillonnet b2a58241d1 actions: un-verify user attributes in backoffice FC unlink action (#66577) 2023-02-13 12:27:27 +01:00
Paul Marillonnet 1b772fe375 tests: fix MX entry testing on fixture email (#66577) 2023-02-13 12:27:27 +01:00
Benjamin Dauvergne 0c5021d2f7 tests: use https:// scheme in webtest client (#71948)
Adaptation to change in authentic settings (SESSION_COOKIE_SECURE=True).
2022-12-02 11:40:01 +01:00
Paul Marillonnet 267f011af8 auth_fc: discard phone- & address-related GLC custom claims (#71900)
Authentic2 mainline, since #71868, does not try to ask for unexistent
'phone' & 'address' FranceConnect scopes. Trying to derive custom claims
from these two scopes here is therefore useless.
2022-12-01 09:45:19 +01:00
Valentin Deniaud 359ecaacef misc: remove imports from django_rbac (#70971) 2022-11-03 14:45:12 +01:00
Paul Marillonnet 27d92545cf hooks: bypass idp_oidc_modify_user_info when user profile is supplied (#63263) 2022-03-28 19:59:11 +02:00
Paul Marillonnet 1ccf9ec535 misc: add support for bullseye's django-tables2 (#62783)
(and its subsequent changes in authentic2 -- #62527)
2022-03-16 17:36:59 +01:00
Paul Marillonnet 6006c96557 codestyle: add black, isort, pyupgrade (#61513) 2022-02-07 18:21:05 +01:00
Benjamin Dauvergne d89c5ec85d misc: rename authentic2.utils import path to authentic2.utils.misc (#55624) 2021-07-15 23:56:18 +02:00
Benjamin Dauvergne af85af7bc4 tests: fix reuse of cached event_type 2020-11-27 17:40:02 +01:00
Benjamin Dauvergne fb55d92d3b apps: force DateTimeField timezone to UTC (#46038)
DRF 3.7 changed the default timezone used by the DateTimeField
serializer field for the default timezone of Django instead of UTC. To
keep GLC plugin retrocompatible we force it to UTC again.

References:
https://www.django-rest-framework.org/community/release-notes/#370
https://github.com/encode/django-rest-framework/pull/5435
2020-08-24 17:38:55 +02:00
Benjamin Dauvergne abfaf85a43 tests: verify hooks by propagating exceptions 2020-05-16 11:57:19 +02:00
Benjamin Dauvergne 89034068b4 dj22: replace django.core.urlresolvers by django.urls 2020-05-15 21:25:27 +02:00
Benjamin Dauvergne a5e4d42e02 tox.ini: refactor, add dj22 target 2020-05-15 18:20:16 +02:00
Paul Marillonnet b879ada6b8 py3: force text on b64-encoded test data (#41220) 2020-04-02 14:53:20 +02:00
Paul Marillonnet ef9b1ea2bf python3: use std pathlib instead of pathlib2 (#41220) 2020-04-02 14:06:03 +02:00
Benjamin Dauvergne 784a4a064d cleanup validation requests and their attachments after 3 months (fixes #30105) 2019-01-29 11:27:51 +01:00
Benjamin Dauvergne d084008f85 tests: move fixtures in conftest (#30105) 2019-01-29 11:27:51 +01:00
Benjamin Dauvergne a1c8807b20 use a link to present pdf validation request attachments (fixes #29508)
Use sorl-thumbnail to produce thumbnails.
2019-01-29 11:27:51 +01:00
Benjamin Dauvergne 2c5563ee91 api_views: set extension of validation attachment from mime_type (#29508) 2019-01-24 19:37:20 +01:00
Benjamin Dauvergne eabdb36bf5 api_views: accept .png and .pdf as validation attachments (fixes #29506) 2019-01-24 17:30:37 +01:00
Benjamin Dauvergne 40c1d36c08 PEP8 / Python3 compatibility (#29506) 2019-01-24 17:30:15 +01:00
Benjamin Dauvergne 07e68ef209 add tests (#26768) 2018-09-27 15:53:38 +02:00