Development #66856
virer le settings AUTH_FRONTEND
Status:
Fermé
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
01 July 2022
Due date:
% Done:
0%
Estimated time:
Patch proposed:
No
Planning:
No
Description
Avec la configuration dans le BO des moyens d’authentification, ce n’est plus pertinent d’avoir cela il me semble.
Dans #65483 qui ajoute le dernier moyen d’authentification manquant au BO, on se retrouve avec :
diff --git a/src/authentic2/settings.py b/src/authentic2/settings.py
index 483ca7169..370a6a7a8 100644
--- a/src/authentic2/settings.py
+++ b/src/authentic2/settings.py
@@ -187,9 +187,7 @@ ACCOUNT_ACTIVATION_DAYS = 2
# Authentication settings
###########################
AUTH_USER_MODEL = 'custom_user.User'
-AUTH_FRONTENDS = (
- 'authentic2_auth_saml.authenticators.SAMLAuthenticator',
-) + plugins.register_plugins_authenticators()
+AUTH_FRONTENDS = plugins.register_plugins_authenticators()
###########################
# RBAC settings
Je pense qu’on gagnerait à virer cette mécanique de setting qu’on vient initialiser avec la liste des moyens d’authn, pour manipuler dans le code directement cette liste (maintenant des modèles) là où on utilisait ce setting jusque là.
Related issues
History
Updated by Paul Marillonnet (retour → 05 sept) about 2 months ago
- Related to Development #65483: configuration des méthodes d'authentification, SAML added
Updated by Valentin Deniaud 21 days ago
- Status changed from Nouveau to Fermé
Ça a été fait au détour de #66853.