Skip to content

Add an invite_guests/link endpoint for shareable guest invite links - #309

Draft
devonh wants to merge 4 commits into
devonh/guest-invite-synapse-controlsfrom
quenting/guest-invite-link
Draft

devonh wants to merge 4 commits into
devonh/guest-invite-synapse-controlsfrom
quenting/guest-invite-link

Conversation

@devonh

@devonh devonh commented Oct 16, 2026

Copy link
Copy Markdown
Member

Adds POST /_synapse/client/invite_guests/link, which returns a link inviting guests to a room, for the caller to share. It backs the "Copy invite link" button in the restricted-guests Element Web module.

Needs element-hq/matrix-authentication-service#6026, whose registration token admin API takes the room_id.

POST /_synapse/client/invite_guests/link
{ "room_id": "!room:example.org" }
→ 200 { "invite_url": "https://auth.example.org/register?token=…" }

sandhose and others added 2 commits October 16, 2026 15:36
POST /_synapse/client/invite_guests/link creates one unlimited,
passwordless MAS registration token with the guest username template
and returns its `invite_url`. This backs the "Copy invite link"
button. It applies the caller and room checks of invite_guests, which
move to a shared method, and is served when email invites are on.

MAS's user-registration-tokens endpoint doesn't take `room_id` yet and
ignores it, so the guest isn't sent to the room after registering until
MAS accepts it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…st-invite-link

Both sides add a `MasAdminClient.create_registration_token`. They become
one, which mints a passwordless token for a room with an optional
address, usage limit and expiry, and returns its ID and link.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01R27QDzJTWSBxkrfbxBxcKF
@devonh
devonh added this pull request to stack #307 October 16, 2026 19:56
@devonh devonh changed the title Add an \invite_guests/link\ endpoint for shareable guest invite links Add an invite_guests/link endpoint for shareable guest invite links Oct 16, 2026
devonh and others added 2 commits October 28, 2026 16:36
…st-invite-link

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FqDpJbhpnnpDdaZJxvxaNh
As for email invites, MAS now takes a registration token's username as a
minijinja template, with `random` as its variable, and refuses the old
`{random}` placeholder when minting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FqDpJbhpnnpDdaZJxvxaNh

This branch has not been deployed

No deployments
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