From 60307c823515c131d4492134f440fc74ee4d2b0a Mon Sep 17 00:00:00 2001 From: James Elliott Date: Fri, 29 Jul 2022 11:03:10 +1000 Subject: [PATCH] docs(oidc): update synapse config (#3762) --- .../en/integration/openid-connect/synapse/index.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/content/en/integration/openid-connect/synapse/index.md b/docs/content/en/integration/openid-connect/synapse/index.md index 48f76c50..48a80799 100644 --- a/docs/content/en/integration/openid-connect/synapse/index.md +++ b/docs/content/en/integration/openid-connect/synapse/index.md @@ -49,10 +49,13 @@ oidc_providers: client_id: "synapse" client_secret: "synapse_client_secret" allow_existing_users: true - scopes: ["openid", "profile"] + scopes: ["openid", "profile", "email"] user_mapping_provider: config: - localpart_template: "{{ openid.preferred_username }}" + subject_claim: "sub" + localpart_template: "{{ user.preferred_username }}" + display_name_template: "{{ user.name }}" + email_template: "{{ user.email }}" ``` ### Authelia @@ -69,6 +72,7 @@ which will operate with the above example: scopes: - openid - profile + - email redirect_uris: - https://synapse.example.com/_synapse/client/oidc/callback userinfo_signing_algorithm: none