Make OIDC providers if check safer

This commit is contained in:
Slavi Pantaleev 2023-10-02 19:32:09 +03:00 committed by GitHub
parent 9167a7734e
commit c0e56ac1c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2090,7 +2090,7 @@ saml2_config:
# use 'oidc' for the idp_id to ensure that existing users continue to be
# recognised.)
#
{% if matrix_synapse_oidc_enabled %}
{% if matrix_synapse_oidc_enabled and matrix_synapse_oidc_providers | length > 0 %}
# Generic example
#matrix_synapse_oidc_providers:
#- idp_id: my_idp