mirror of
https://github.com/element-hq/synapse.git
synced 2026-05-20 20:15:50 +00:00
4900eab3b2
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.