summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristopher Rücker <77160940+chris-ruecker@users.noreply.github.com>2021-01-08 19:29:30 +0100
committerGitHub <noreply@github.com>2021-01-08 18:29:30 +0000
commitbce0c91d9a89097c94d687aadfed9b4ebbdcc75d (patch)
tree7e01ae333c66216b3b05d14b4742b02c213a1db1
parentFix "Starting metrics collection from sentinel context" errors (#9053) (diff)
downloadsynapse-bce0c91d9a89097c94d687aadfed9b4ebbdcc75d.tar.xz
Keycloak mapping_provider example (#9037) (#9057)
This PR adds the missing user_mapping_provider section in oidc.md

Signed-off-by: Christopher Rücker chris-ruecker@protonmail.com
-rw-r--r--changelog.d/9057.doc1
-rw-r--r--docs/openid.md4
2 files changed, 5 insertions, 0 deletions
diff --git a/changelog.d/9057.doc b/changelog.d/9057.doc
new file mode 100644
index 0000000000..d16686e7dc
--- /dev/null
+++ b/changelog.d/9057.doc
@@ -0,0 +1 @@
+Add missing user_mapping_provider configuration to the Keycloak OIDC example. Contributed by @chris-ruecker.
diff --git a/docs/openid.md b/docs/openid.md
index da391f74aa..ffa4238fff 100644
--- a/docs/openid.md
+++ b/docs/openid.md
@@ -158,6 +158,10 @@ oidc_config:
    client_id: "synapse"
    client_secret: "copy secret generated from above"
    scopes: ["openid", "profile"]
+   user_mapping_provider:
+     config:
+       localpart_template: "{{ user.preferred_username }}"
+       display_name_template: "{{ user.name }}"
 ```
 ### [Auth0][auth0]