Register shared-secret-auth password provider first

For people using multiple password providers, it makes sense
to have the fastest one (which doesn't make network requests) be first.
This commit is contained in:
Slavi Pantaleev 2018-12-21 10:16:36 +02:00
parent 40626ff8df
commit 6124effbe1

View File

@ -630,6 +630,11 @@ email:
# #filter: "(objectClass=posixAccount)" # #filter: "(objectClass=posixAccount)"
{% if matrix_synapse_password_providers_enabled %} {% if matrix_synapse_password_providers_enabled %}
password_providers: password_providers:
{% if matrix_synapse_ext_password_provider_shared_secret_auth_enabled %}
- module: "shared_secret_authenticator.SharedSecretAuthenticator"
config:
sharedSecret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret }}"
{% endif %}
{% if matrix_synapse_ext_password_provider_rest_auth_enabled %} {% if matrix_synapse_ext_password_provider_rest_auth_enabled %}
- module: "rest_auth_provider.RestAuthProvider" - module: "rest_auth_provider.RestAuthProvider"
config: config:
@ -644,11 +649,6 @@ password_providers:
profile: profile:
name: {{ matrix_synapse_ext_password_provider_rest_auth_login_profile_name_autofill }} name: {{ matrix_synapse_ext_password_provider_rest_auth_login_profile_name_autofill }}
{% endif %} {% endif %}
{% if matrix_synapse_ext_password_provider_shared_secret_auth_enabled %}
- module: "shared_secret_authenticator.SharedSecretAuthenticator"
config:
sharedSecret: "{{ matrix_synapse_ext_password_provider_shared_secret_auth_shared_secret }}"
{% endif %}
{% if matrix_synapse_ext_password_provider_ldap_enabled %} {% if matrix_synapse_ext_password_provider_ldap_enabled %}
- module: "ldap_auth_provider.LdapAuthProvider" - module: "ldap_auth_provider.LdapAuthProvider"
config: config: