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.2.tar.gz (78.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

synapse_invite_checker-0.2.2-py3-none-any.whl (24.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: synapse_invite_checker-0.2.2.tar.gz
  • Upload date:
  • Size: 78.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for synapse_invite_checker-0.2.2.tar.gz
Algorithm Hash digest
SHA256 475233df97602f2e26993b3e67ced3d66e51a7c66170b9ef90afa1ee69416b26
MD5 15da4e600930149466af3fa3afca5bb8
BLAKE2b-256 93c775ff2b9e6492013c524208ac8aba2c6637836a800b0e429bb0a4a2732bc6

See more details on using hashes here.

Provenance

The following attestation bundles were made for synapse_invite_checker-0.2.2.tar.gz:

Publisher: publish.yml on famedly/synapse-invite-checker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for synapse_invite_checker-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 944115ba7c48ef2f8e42ba5907273e515874e00966c2f66e5e1b8758e0354d6a
MD5 ea752c34267d4b451a6b5620db8f745d
BLAKE2b-256 c3af4e3d5b4f667e0bb0c697dd9b596b1a9cf5b3a503ae07ad2dc0529eada726

See more details on using hashes here.

Provenance

The following attestation bundles were made for synapse_invite_checker-0.2.2-py3-none-any.whl:

Publisher: publish.yml on famedly/synapse-invite-checker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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