Skip to main content

Synapse module to handle TIM contact management and invite permissions

Project description

Synapse Invite Checker

PyPI - Version PyPI - Python Version

Synapse Invite Checker is a synapse module to restrict invites on a homeserver according to the rules required by Gematik in a TIM federation.


Table of Contents

Installation

pip install synapse-invite-checker

Configuration

Here are the available configuration options:

# the outer modules section is just provided for completeness, the config block is the actual module config.
modules:
  - module: "synapse_invite_checker.InviteChecker"
    config:
        api_prefix: "/_synapse/client/test", # Prefix to expose these endpoints under, optional, configure only if you know why you need to change it.
        title: "TIM Contact API by Famedly", # Title for the info endpoint, optional
        description: "Custom description for the endpoint", # Description for the info endpoint, optional
        contact: "random@example.com", # Contact information for the info endpoint, optional
        federation_list_url: "https://localhost:8080", # Full url where to fetch the federation list from, required
        federation_localization_url: "https://localhost:8080/localization", # Full url where to fetch the federation localization from, required. Should be the same host as federation list.
        federation_list_client_cert: "tests/certs/client.pem", # path to a pem encoded client certificate for mtls, required if federation list url is https
        gematik_ca_baseurl: "https://download-ref.tsl.ti-dienste.de/", # the baseurl to the ca to use for the federation list, required

Testing

The tests uses twisted's testing framework trial, with the development enviroment managed by hatch. Running the tests and generating a coverage report can be done like this:

hatch run cov

License

synapse-invite-checker is distributed under the terms of the AGPL-3.0 license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

synapse_invite_checker-0.2.0.tar.gz (78.4 kB view details)

Uploaded Source

Built Distribution

synapse_invite_checker-0.2.0-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

Details for the file synapse_invite_checker-0.2.0.tar.gz.

File metadata

File hashes

Hashes for synapse_invite_checker-0.2.0.tar.gz
Algorithm Hash digest
SHA256 af242887b192282685ad465d18090ade0ea593eb3a7091f8ae11a4c3578d8896
MD5 2af9d29ea7838b042d4594e3bdeb943d
BLAKE2b-256 276e079eafcd54a8a0f664cc8ab66bac1987c9837dbde9e0073d947f3a656e14

See more details on using hashes here.

File details

Details for the file synapse_invite_checker-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for synapse_invite_checker-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee393b4272a36f926ba0fc26ee4f843023686c3b77ecc26eab9f528a0b6eb475
MD5 4039eb85a87249b9ae0f2532e94cd79d
BLAKE2b-256 2b597636cdd180ef5a68591aee313a7cb8a8a687aec70f3facd46f0b9bf7d5b2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page