mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-05 22:34:11 -04:00
Add documentation to password_providers config option (#7238)
This commit is contained in:
parent
f31e65a749
commit
29b7e22b93
4 changed files with 32 additions and 4 deletions
|
@ -35,7 +35,7 @@ class PasswordAuthProviderConfig(Config):
|
|||
if ldap_config.get("enabled", False):
|
||||
providers.append({"module": LDAP_PROVIDER, "config": ldap_config})
|
||||
|
||||
providers.extend(config.get("password_providers", []))
|
||||
providers.extend(config.get("password_providers") or [])
|
||||
for provider in providers:
|
||||
mod_name = provider["module"]
|
||||
|
||||
|
@ -52,7 +52,19 @@ class PasswordAuthProviderConfig(Config):
|
|||
|
||||
def generate_config_section(self, **kwargs):
|
||||
return """\
|
||||
#password_providers:
|
||||
# Password providers allow homeserver administrators to integrate
|
||||
# their Synapse installation with existing authentication methods
|
||||
# ex. LDAP, external tokens, etc.
|
||||
#
|
||||
# For more information and known implementations, please see
|
||||
# https://github.com/matrix-org/synapse/blob/master/docs/password_auth_providers.md
|
||||
#
|
||||
# Note: instances wishing to use SAML or CAS authentication should
|
||||
# instead use the `saml2_config` or `cas_config` options,
|
||||
# respectively.
|
||||
#
|
||||
password_providers:
|
||||
# # Example config for an LDAP auth provider
|
||||
# - module: "ldap_auth_provider.LdapAuthProvider"
|
||||
# config:
|
||||
# enabled: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue