From 7094f518103d3c98259e745c3bfebc897e376542 Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Mon, 13 Dec 2021 10:56:27 +0100 Subject: [PATCH] fix: stop templating falling over keycloak --- homeserver.yaml.tmpl | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/homeserver.yaml.tmpl b/homeserver.yaml.tmpl index 662469a..4105f9e 100644 --- a/homeserver.yaml.tmpl +++ b/homeserver.yaml.tmpl @@ -1871,31 +1871,6 @@ saml2_config: # recognised.) # oidc_providers: - # Generic example - # - #- idp_id: my_idp - # idp_name: "My OpenID provider" - # idp_icon: "mxc://example.com/mediaid" - # discover: false - # issuer: "https://accounts.example.com/" - # client_id: "provided-by-your-issuer" - # client_secret: "provided-by-your-issuer" - # client_auth_method: client_secret_post - # scopes: ["openid", "profile"] - # authorization_endpoint: "https://accounts.example.com/oauth2/auth" - # token_endpoint: "https://accounts.example.com/oauth2/token" - # userinfo_endpoint: "https://accounts.example.com/userinfo" - # jwks_uri: "https://accounts.example.com/.well-known/jwks.json" - # skip_verification: true - # user_mapping_provider: - # config: - # subject_claim: "id" - # localpart_template: "{{ user.login }}" - # display_name_template: "{{ user.name }}" - # email_template: "{{ user.email }}" - # attribute_requirements: - # - attribute: userGroup - # value: "synapseUsers" {{ if eq (env "KEYCLOAK_ENABLED") "1" }} - idp_id: keycloak @@ -1906,8 +1881,8 @@ oidc_providers: scopes: ["openid", "profile"] user_mapping_provider: config: - localpart_template: "{{ user.preferred_username }}" - display_name_template: "{{ user.name }}" + localpart_template: "{{ "user.preferred_username" }}" + display_name_template: "{{ "user.name" }}" {{ end }}