Skip to content

MAS implementation - #22

Merged
Akaseli merged 6 commits into
mainfrom
mas-implementation
Jul 14, 2026
Merged

MAS implementation#22
Akaseli merged 6 commits into
mainfrom
mas-implementation

Conversation

@Akaseli

@Akaseli Akaseli commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

User-Facing Summary

  • Use MAS instead of synapse for accounts.

Why It's Good for the Product (Release Goal)

  • Allows usage of Element X + other more modern matrix clients

@Akaseli
Akaseli force-pushed the mas-implementation branch from fb772fd to 5560cdb Compare July 8, 2026 06:49
@Akaseli
Akaseli marked this pull request as ready for review July 14, 2026 05:42
@Akaseli
Akaseli force-pushed the mas-implementation branch from df43f1a to 28111a8 Compare July 14, 2026 06:44
@@ -0,0 +1,154 @@
"""MAS (Matrix Authentication Service) admin API helper"""

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just move this stuff under utils instead of synapseutils? Or maybe helpers or something

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved to utils.

Comment thread src/matrixrmapi/synapseutils/startup.py Outdated
return mas


async def synapse_startup(app: FastAPI) -> None:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be renamed from synapse_startup to include mas

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

renamed to connect_to_matrix

Comment thread tests/test_mas_admin.py Outdated
async def test_ensure_user_existing_skips_create() -> None:
"""Existing user: ULID returned from lookup, no create POST."""
mas = _make_mas()
client = mas._client # pylint: disable=protected-access

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit for all pylint comments, I believe we are no longer using this tool here. Should be ruff comments instead (if needed at all)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed all added (and existing) pylint comments.

@Akaseli
Akaseli merged commit 65ef839 into main Jul 14, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants