Skip to main content

Matrix Synapse

Support level: Community

What is Matrix Synapse

Matrix is an open source project that publishes the Matrix open standard for secure, decentralised, real-time communication, and its Apache licensed reference implementations.



The following placeholders will be used:

  • is the FQDN of the Matrix install.
  • is the FQDN of the authentik install.

Create an application in authentik. Create an OAuth2/OpenID provider with the following parameters:

  • Client Type: Confidential
  • Scopes: OpenID, Email and Profile
  • Signing Key: Select any available key
  • Redirect URIs:

Note the Client ID and Client Secret values. Create an application, using the provider you've created above. Note the slug of the application you've created.


Add the following block to your Matrix config

- idp_id: authentik
idp_name: authentik
discover: true
issuer: ""
client_id: "*client id*"
client_secret: "*client secret*"
- "openid"
- "profile"
- "email"
localpart_template: "{{ user.preferred_username }}"
display_name_template: "{{|capitalize }}"