Repository navigation
Add a Matrix Authentication Service (MAS) page - #18
Merged
Merged
Conversation
Covers OAuth 2.0 login for Synapse 1.163 with MAS v1.27.0: install, matrix_authentication_service wiring, conflicting settings, compat reverse-proxy routes, mas-cli syn2mas migration, admin and registration, auth_metadata checks and common failures. Links it from the Synapse page and adds it to the Servers sidebar after Synapse.
… X reason; allowlist MAS, lk-jwt-service and LiveKit images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New page:
docs/servers/mas.md, "Matrix Authentication Service (MAS)". It sits in the Servers sidebar after Synapse, andservers/synapse.mdgets one sentence linking to it.What it covers:
http,databaseandmatrix.matrix_authentication_service, and every setting that conflicts with it.auth.example.complus the compat routes (login|logout|refresh).mas-cli syn2mas.mas-cli managecommands, registration tokens and the MAS admin API./auth_metadata,/login,/healthandmas-cli doctor.Versions verified: spec v1.19, Synapse 1.163.0, MAS v1.27.0 (2026-10-13), Element X Android 26.09.4 and Element X iOS 26.10.4.
How each block was checked:
homeserver.yamlblock and conflict list: read from Synapse v1.163.0synapse/config/mas.py,config/auth.pyandconfig/registration.py(defaults with MAS on),schema/synapse-config.schema.yamlandconfig_documentation.md. Thelogin,logoutandrefreshservlets are skipped when MAS is on (rest/client/login.pyandlogout.py)./_synapse/masis mounted inrest/synapse/client/__init__.py.docs/config.schema.jsonat v1.27.0. The generated defaults ([::]:8080bind,issuer, the internalhealthlistener on 8081) were checked againstcrates/config/src/sections/http.rs.config generate --synapse-config/--output,config check,syn2mas check|migrate --dry-run, the global--config, everymanagesubcommand and flag, and--versionwere checked againstcrates/cli/src/commands/*.rsat v1.27.0.syn2masexists only asmas-cli syn2mas; there is no standalone tool in the tree at that tag.1.27.0were checked through the GitHub releases API and the registry manifest API. The container entrypoint was checked in the Dockerfile.docs/setup/reverse-proxy.md. The/logincheck uses theoauth_aware_preferred: trueflow fromcrates/handlers/src/compat/login.rs.LoginModePresenter.ktandMatrixHomeServerDetails.ktwere read at v26.09.4. iOSAuthenticationService.swiftandLoginMode.swiftwere read at release/26.10.4.Links: every external link returns 200 (
curl -sIL). Internal links and anchors pass the build. Gate: 0 findings. Build passes.