docs(oidc): update synapse config (#3762)

pull/3758/head
James Elliott 2022-07-29 11:03:10 +10:00 committed by GitHub
parent 24dd633a52
commit 60307c8235
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -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