fix: stop templating falling over keycloak
This commit is contained in:
parent
e8a876a28c
commit
7094f51810
|
@ -1871,31 +1871,6 @@ saml2_config:
|
||||||
# recognised.)
|
# recognised.)
|
||||||
#
|
#
|
||||||
oidc_providers:
|
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" }}
|
{{ if eq (env "KEYCLOAK_ENABLED") "1" }}
|
||||||
- idp_id: keycloak
|
- idp_id: keycloak
|
||||||
|
@ -1906,8 +1881,8 @@ oidc_providers:
|
||||||
scopes: ["openid", "profile"]
|
scopes: ["openid", "profile"]
|
||||||
user_mapping_provider:
|
user_mapping_provider:
|
||||||
config:
|
config:
|
||||||
localpart_template: "{{ user.preferred_username }}"
|
localpart_template: "{{ "user.preferred_username" }}"
|
||||||
display_name_template: "{{ user.name }}"
|
display_name_template: "{{ "user.name" }}"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue