very hacky multiple keycloaks!

See https://git.coopcloud.tech/coop-cloud/matrix-synapse/issues/24.
This commit is contained in:
decentral1se
2022-03-08 09:34:00 +01:00
parent e9b5a5360f
commit c71f3bc519
3 changed files with 31 additions and 1 deletions

View File

@ -1897,6 +1897,19 @@ oidc_providers:
display_name_template: "{{ "{{ user.name }}" }}"
{{ end }}
{{ if eq (env "KEYCLOAK2_ENABLED") "1" }}
- idp_id: keycloak2
idp_name: {{ env "KEYCLOAK2_NAME" }}
issuer: "{{ env "KEYCLOAK2_URL" }}"
client_id: "{{ env "KEYCLOAK2_CLIENT_ID" }}"
client_secret: "{{ secret "keycloak2_client_secret" }}"
scopes: ["openid", "profile"]
user_mapping_provider:
config:
localpart_template: "{{ "{{ user.preferred_username }}" }}"
display_name_template: "{{ "{{ user.name }}" }}"
{{ end }}
# Enable Central Authentication Service (CAS) for registration and login.
#