summary refs log tree commit diff
path: root/docs/openid.md
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 /docs/openid.md
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
Diffstat (limited to 'docs/openid.md')
-rw-r--r--docs/openid.md4
1 files changed, 4 insertions, 0 deletions
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]