Commit Graph

235 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 7de4b273df custom_settings: remove SESSION_ENGINE setting (#84539)
gitea/authentic2-cut/pipeline/head This commit looks good Details
2023-12-11 10:19:13 +01:00
Benjamin Dauvergne b34603cbcf views: make /cgu/ redirect to https://portail-platform.grandlyon.com/mentions-legales/ (#84480)
gitea/authentic2-cut/pipeline/head There was a failure building this commit Details
2023-12-08 11:20:07 +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 a2238cc044 apps: adapt validation context testing to case discrepancy (#66577) 2023-02-13 12:27:27 +01:00
Valentin Deniaud 42dbb3787b misc: remove compatibility code with old authentic version (#72025) 2022-12-12 10:27:51 +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 0d46b00c2f misc: retrieve rbac-related objects from a2_rbac app (#70563) 2022-10-21 12:41:45 +02:00
Benjamin Dauvergne 86d4025304 remove Journal model (#67849) 2022-09-12 17:12:50 +02:00
Paul Marillonnet 5891c5613b urls: fix utility function import error from authentic mainline (#67169) 2022-07-08 11:11:29 +02:00
Benjamin Dauvergne 681f7ae9c2 apps: deep copy uuid field (#65408) 2022-05-18 17:32:37 +02:00
Paul Marillonnet c070f1622a apps: leave uuid in api_modify_serializer hook (#65350) 2022-05-17 12:03:46 +02:00
Paul Marillonnet a2f94df10b templates: discard deprecated 'staticfiles' lib (#65290) 2022-05-16 12:10:31 +02:00
Paul Marillonnet 64114dfa47 middlewares: discard deprecated six import (#65290) 2022-05-16 12:08:35 +02:00
Benjamin Dauvergne 2818b86697 apps: add link to user's table email column (#64849) 2022-05-04 16:01:54 +02:00
Paul Marillonnet 456796b024 apps: add a 'fc-create' hook performing attribute verification (#64280) 2022-04-15 21:29:24 +02: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
Benjamin Dauvergne 1c4f35aa6d apps: do not send another mail on user creation (#26053) 2022-02-21 11:01:30 +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 6db41c2223 custom_settings: remove TEMPLATE_VARS in conflict with theme (#55032) 2021-06-21 15:52:44 +02:00
Benjamin Dauvergne 447f1c48bc middlewares: only forbid the oidc idp to administrators (#55022) 2021-06-21 14:38:57 +02:00
Frédéric Péters a3407c7208 delay loading of "magic" module to usage (#52687)
This avoids an issue with the uwsgi spooler failing to find library
symbols.

  File "/usr/lib/python3/dist-packages/authentic2_cut/utils.py", line 3, in <module>
    import magic
  File "/usr/lib/python3.7/ctypes/__init__.py", line 374, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/bin/uwsgi: undefined symbol: magic_open
2021-04-06 15:38:57 +02:00
Frédéric Péters 8720bc6c19 misc: update to new way to declare Operation objects (#49746) 2020-12-26 16:24:37 +01:00
Benjamin Dauvergne e5b548d790 tox.ini: hide warnings 2020-11-27 17:40:13 +01:00
Benjamin Dauvergne 6bdf330cf4 apps: prevent modifications of __class__.base_columns (#46451)
base_columns is not an instance attribute anymore.
2020-09-08 13:32:22 +02: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 70f00be9e6 custom_settings: ignore preferred_username from FC when it's already set (#45866) 2020-08-13 15:45:45 +02:00
Frédéric Péters 6d0a064d6a misc: adapt string view of FC user data for py3 (#45467) 2020-07-26 17:52:20 +02:00
Frédéric Péters af72ac8183 misc: never alter form fields dictionary during iteration (#45201) 2020-07-16 19:01:17 +02:00
Benjamin Dauvergne d78ce337ec misc: dont mutate dictionnary during iteration (#44869) 2020-07-06 20:55:04 +02:00
Benjamin Dauvergne 8dc42017ed misc: remove requirement on python-magic
Python package changed between python3 and python2 on Debian
(python-magic is the pypi package python-magic, but python3-magic is the
pypi package file-magic :/)
2020-07-03 13:52:31 +02:00
Benjamin Dauvergne 0a4fa6b6fe Jenkinsfile: remove files with find first 2020-07-03 10:38:44 +02:00
Benjamin Dauvergne 13e5dc68f1 drf39: force ou to "usagers" using HiddenField 2020-05-15 21:33:42 +02:00
Benjamin Dauvergne 89034068b4 dj22: replace django.core.urlresolvers by django.urls 2020-05-15 21:25:27 +02:00
Benjamin Dauvergne ce3a088a24 models: make Journal.actor nullable 2020-05-15 18:20:16 +02:00
Benjamin Dauvergne e7f9e32fe0 migrations: fix choice labels 2020-05-15 18:20:16 +02:00
Benjamin Dauvergne f7b6fdb2ee py3: remove bytes strings from migrations 2020-05-15 18:20:16 +02:00
Benjamin Dauvergne 5751075178 dj22: user.is_authenticated is a property 2020-05-15 18:20:16 +02:00
Benjamin Dauvergne fe5b5fc47c dj22: use MiddlewareMixin 2020-05-15 18:20:16 +02:00
Benjamin Dauvergne d101944f7d dj22: direct assignment to M2M fields is deprecated 2020-05-15 18:20:16 +02:00
Benjamin Dauvergne 15daeea356 dj22: add on_delete attribute to FK 2020-05-15 18:20:16 +02:00