Skip to main content

Module mas

Module mas 

Source

ModulesΒ§

allow_cross_signing_reset πŸ”’
delete_device πŸ”’
delete_user πŸ”’
is_localpart_available πŸ”’
provision_user πŸ”’
query_user πŸ”’
reactivate_user πŸ”’
set_displayname πŸ”’
sync_devices πŸ”’
unset_displayname πŸ”’
update_device_display_name πŸ”’
upsert_device πŸ”’

StructsΒ§

Mas πŸ”’
Asserts a request originates from MAS by matching its bearer token against the configured shared secret, the equivalent of Synapse’s assert_request_is_from_mas. Rejects with 403 on mismatch or no secret.

FunctionsΒ§

existing_user πŸ”’
Resolves a MAS localpart to an existing local user, rejecting an absent one with 404.
local_user πŸ”’
Parses a MAS localpart into a local user id, rejecting a malformed one with 400.