Mailman 3 MFA with django-allauth[mfa]
Has anyone successfully got MFA working in Mailman 3 with django-allauth[mfa]?
I'm struggling to get it working with the limited documentation I could find. (https://docs.allauth.org/en/dev/mfa/index.html)
If signed in as a user, I can browse to /accounts/2fa/ to activate MFA, but I was hoping to make it a mandatory part of the Sign Up process. Is there something that needs to be done with the URLs somewhere?
This list site is an example of how I'd like it to work: https://mailing-lists.imperial.ac.uk/
Here is what I added to settings.py:
#---------------------------------------- INSTALLED_APPS= ['hyperkitty', 'postorius', 'django_mailman3', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'rest_framework', 'django_gravatar', 'compressor', 'haystack', 'django_extensions', 'django_q', 'allauth', 'allauth.account', 'allauth.mfa', 'allauth.socialaccount']
# Specifies the adapter class to use, allowing you to alter certain default behaviour. MFA_ADAPTER = "allauth.mfa.adapter.DefaultMFAAdapter"
# Used to override forms. Defaults to: MFA_FORMS = { 'authenticate': 'allauth.mfa.forms.AuthenticateForm', 'reauthenticate': 'allauth.mfa.forms.AuthenticateForm', 'activate_totp': 'allauth.mfa.forms.ActivateTOTPForm', 'deactivate_totp': 'allauth.mfa.forms.DeactivateTOTPForm', }
MFA_RECOVERY_CODE_COUNT = 10
MFA_TOTP_PERIOD = 30
MFA_TOTP_DIGITS = 6 #----------------------------------------
Thanks.
participants (1)
-
Liam Reilly