Add Config opion disable_local_accounts

This commit is contained in:
Uwe Winter
2025-09-29 17:40:47 -05:00
committed by Ahmed Awan
parent 2f570c46e6
commit 68b4a0c948
4 changed files with 26 additions and 0 deletions
+12
View File
@@ -3839,6 +3839,18 @@
:Type: bool
~~~~~~~~~~~~~~~~~~~~~~~~~~
``disable_local_accounts``
~~~~~~~~~~~~~~~~~~~~~~~~~~
:Description:
Disable local accounts. If this option is set to true, at least
one OIDC provider needs to be configured and will serve as the
account provider.
:Default: ``false``
:Type: bool
~~~~~~~~~~~~~~~~~~~~~~~
``allow_user_deletion``
~~~~~~~~~~~~~~~~~~~~~~~
@@ -2119,6 +2119,11 @@ galaxy:
# will have to be created by an admin).
#allow_user_creation: true
# Disable local accounts. If this option is set to true, at least one
# OIDC provider needs to be configured and will serve as the account
# provider.
#disable_local_accounts: false
# Allow administrators to delete accounts.
#allow_user_deletion: false
@@ -2830,6 +2830,14 @@ mapping:
Allow unregistered users to create new accounts (otherwise, they will have to
be created by an admin).
disable_local_accounts:
type: bool
default: false
required: true
desc: |
Disable local accounts. If this option is set to true, at least one OIDC provider needs
to be configured and will serve as the account provider.
allow_user_deletion:
type: bool
default: false
+1
View File
@@ -144,6 +144,7 @@ class ConfigSerializer(base.ModelSerializer):
"topk_recommendations": _use_config,
"allow_user_impersonation": _use_config,
"allow_user_creation": _defaults_to(False), # schema default is True
"disable_local_accounts": _defaults_to(False), # schema default is False
"use_remote_user": _defaults_to(None), # schema default is False; or config.single_user
"single_user": _config_is_truthy,
"enable_oidc": _use_config,