Просмотр исходного кода

fix(mas): Don't fail if OpenID connect is setup in synapse while upgrading to MAS

pull/4840/merge
Jean-Benoît Grimaldi 1 день назад
committed by Slavi Pantaleev
Родитель
Сommit
e5804c4203
2 измененных файлов: 2 добавлений и 2 удалений
  1. +1
    -1
      roles/custom/matrix-synapse/tasks/validate_config.yml
  2. +1
    -1
      roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2

+ 1
- 1
roles/custom/matrix-synapse/tasks/validate_config.yml Просмотреть файл

@@ -210,7 +210,7 @@
- name: Fail if OpenID Connect is enabled for Synapse when auth is delegated to Matrix Authentication Service - name: Fail if OpenID Connect is enabled for Synapse when auth is delegated to Matrix Authentication Service
ansible.builtin.fail: ansible.builtin.fail:
msg: "When Synapse is delegating authentication to Matrix Authentication Service (`matrix_synapse_matrix_authentication_service_enabled: true`), it doesn't make sense to enable OpenID Connect (`matrix_synapse_oidc_enabled: true`), because it is not Synapse that is handling authentication. Synapse will refuse to start otherwise." msg: "When Synapse is delegating authentication to Matrix Authentication Service (`matrix_synapse_matrix_authentication_service_enabled: true`), it doesn't make sense to enable OpenID Connect (`matrix_synapse_oidc_enabled: true`), because it is not Synapse that is handling authentication. Synapse will refuse to start otherwise."
when: matrix_synapse_matrix_authentication_service_enabled and matrix_synapse_oidc_enabled
when: matrix_synapse_matrix_authentication_service_enabled and matrix_synapse_oidc_enabled and not matrix_authentication_service_migration_in_progress


- name: Fail if CAS config is enabled for Synapse when auth is delegated to Matrix Authentication Service - name: Fail if CAS config is enabled for Synapse when auth is delegated to Matrix Authentication Service
ansible.builtin.fail: ansible.builtin.fail:


+ 1
- 1
roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 Просмотреть файл

@@ -2987,7 +2987,7 @@ background_updates:
#default_batch_size: 50 #default_batch_size: 50




{% if matrix_synapse_matrix_authentication_service_enabled %}
{% if matrix_synapse_matrix_authentication_service_enabled and not matrix_authentication_service_migration_in_progress %}
matrix_authentication_service: matrix_authentication_service:
enabled: true enabled: true
endpoint: {{ matrix_synapse_matrix_authentication_service_endpoint | to_json }} endpoint: {{ matrix_synapse_matrix_authentication_service_endpoint | to_json }}


Загрузка…
Отмена
Сохранить