mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-17 05:44:22 -05:00
Document Google OpenID Connect email attribute (#14081)
This commit is contained in:
parent
dc37b68a25
commit
8074430d25
1
changelog.d/14081.doc
Normal file
1
changelog.d/14081.doc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Expand Google OpenID Connect example config to map email attribute. Contributed by @ptman.
|
@ -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`.
|
||||||
|
Loading…
Reference in New Issue
Block a user