mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-31 02:28:09 +08:00
Add Config opion disable_local_accounts
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user