Synapse is the reference implementation of a Matrix home server, written in Python.
See The official Synapse documentation for details
oidc_providers:
- idp_id: lemonldap
idp_name: lemonldap
discover: true
issuer: "https://auth.example.com/" # TO BE FILLED: replace with your domain
client_id: "your client id" # TO BE FILLED
client_secret: "your client secret" # TO BE FILLED
scopes:
- "openid"
- "profile"
- "email"
user_profile_method: "userinfo_endpoint" # Required if you see "localpart" error in Matrix logs
user_mapping_provider:
config:
localpart_template: "{{ user.preferred_username }}"
# TO BE FILLED: If your users have names in LemonLDAP::NG and you want those in Synapse, this should be replaced with user.name|capitalize or any valid filter.
display_name_template: "{{ user.preferred_username|capitalize }}"
Add a new OpenID Connect relying party with the following parameters:
(adjust if you don’t store your username attribute in the uid session variable