Add a new setting, DISABLE_LOCAL_AUTH

and expose it in the settings UI.
This commit is contained in:
Jeff Bradberry
2021-05-04 11:07:48 -04:00
parent f2b2e64426
commit 26b7e9de40
9 changed files with 47 additions and 10 deletions

View File

@@ -27,6 +27,17 @@ register(
category=_('Authentication'),
category_slug='authentication',
)
register(
'DISABLE_LOCAL_AUTH',
field_class=fields.BooleanField,
label=_('Disable the built-in authentication system'),
help_text=_(
"Controls whether users are prevented from using the built-in authentication system. "
"You probably want to do this if you are using an LDAP or SAML integration."
),
category=_('Authentication'),
category_slug='authentication',
)
register(
'AUTH_BASIC_ENABLED',
field_class=fields.BooleanField,