Files
synapse/docker/complement/conf
Olivier 'reivilibre 4900eab3b2 Add MAS registration shim for legacy Matrix APIs
MAS does not handle the legacy Matrix registration endpoints that Complement
relies on. This Python HTTP shim bridges the gap by:

- Handling POST /_matrix/client/v3/register (m.login.dummy flow) by creating
  users via the MAS REST Admin API, setting passwords, and logging in through
  the MAS compat layer to obtain access tokens.
- Handling GET/POST /_synapse/admin/v1/register (shared-secret admin
  registration) with HMAC verification, then using the same MAS Admin API
  flow.
- Caching the admin OAuth2 token obtained via client_credentials grant.

A supervisord config for the shim process is included.
2026-04-27 18:26:38 +01:00
..