fairdm.conf.settings.auth#

Authentication and authorization settings.

Owns password hashing (Argon2 first), password validators, authentication backends (ModelBackend, allauth, guardian, FairDM’s own object-level backends), django-allauth account and social settings, and the FairDM signup gate. A portal supplies SOCIALACCOUNT_PROVIDERS beyond ORCID, its own account and signup forms via ACCOUNT_FORMS/SOCIALACCOUNT_FORMS, and its own profile editing forms via FAIRDM_PROFILE_FORMS.

Module Contents#

Data#

API#

env#

None

AUTH_USER_MODEL#

‘contributors.Person’

LOGIN_REDIRECT_URL#

‘/’

LOGIN_URL#

‘account_login’

PASSWORD_HASHERS#

[‘django.contrib.auth.hashers.Argon2PasswordHasher’, ‘django.contrib.auth.hashers.PBKDF2PasswordHash…

AUTH_PASSWORD_VALIDATORS#

None

AUTHENTICATION_BACKENDS#

[‘django.contrib.auth.backends.ModelBackend’, ‘allauth.account.auth_backends.AuthenticationBackend’,…

SILENCED_SYSTEM_CHECKS#

[‘guardian.W001’]

ACCOUNT_ADAPTER#

‘fairdm.contrib.contributors.adapters.AccountAdapter’

ACCOUNT_ALLOW_REGISTRATION#

True

ACCOUNT_CONFIRM_EMAIL_ON_GET#

True

ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS#

3

ACCOUNT_EMAIL_VERIFICATION#

‘mandatory’

ACCOUNT_LOGIN_METHODS#

None

ACCOUNT_LOGIN_ON_EMAIL_CONFIRMATION#

True

ACCOUNT_LOGOUT_ON_GET#

False

ACCOUNT_MAX_EMAIL_ADDRESSES#

4

ACCOUNT_SIGNUP_FIELDS#

[‘email*’, ‘password1*’, ‘password2*’]

ACCOUNT_SIGNUP_FORM_CLASS#

‘fairdm.contrib.contributors.forms.person.SignupExtraForm’

ACCOUNT_USER_MODEL_USERNAME_FIELD#

None

SOCIALACCOUNT_AUTO_SIGNUP#

True

SOCIALACCOUNT_PROVIDERS#

None

SOCIALACCOUNT_ADAPTER#

‘fairdm.contrib.contributors.adapters.SocialAccountAdapter’

FAIRDM_INVITATION_ONLY_SIGNUP#

False

ACCOUNT_FORMS#

None

SOCIALACCOUNT_FORMS#

None

FAIRDM_PROFILE_FORMS#

None