Skip to content
Snippets Groups Projects
Unverified Commit 8074430d authored by Paul Tötterman's avatar Paul Tötterman Committed by GitHub
Browse files

Document Google OpenID Connect email attribute (#14081)

parent dc37b68a
No related branches found
No related tags found
No related merge requests found
Expand Google OpenID Connect example config to map email attribute. Contributed by @ptman.
...@@ -336,11 +336,12 @@ oidc_providers: ...@@ -336,11 +336,12 @@ oidc_providers:
issuer: "https://accounts.google.com/" issuer: "https://accounts.google.com/"
client_id: "your-client-id" # TO BE FILLED client_id: "your-client-id" # TO BE FILLED
client_secret: "your-client-secret" # TO BE FILLED client_secret: "your-client-secret" # TO BE FILLED
scopes: ["openid", "profile"] scopes: ["openid", "profile", "email"] # email is optional, read below
user_mapping_provider: user_mapping_provider:
config: config:
localpart_template: "{{ user.given_name|lower }}" localpart_template: "{{ user.given_name|lower }}"
display_name_template: "{{ user.name }}" display_name_template: "{{ user.name }}"
email_template: "{{ user.email }}" # needs "email" in scopes above
``` ```
4. Back in the Google console, add this Authorized redirect URI: `[synapse 4. Back in the Google console, add this Authorized redirect URI: `[synapse
public baseurl]/_synapse/client/oidc/callback`. public baseurl]/_synapse/client/oidc/callback`.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment