Skip to main content

radicale-modoboa-rights

A rights management plugin for Radicale provided by Modoboa.

Access to a user’s own collections and to the shared calendars of his domain is decided locally. Access to collections owned by someone else (calendars shared through Modoboa access rules, administrators) is asked to the Modoboa API and cached, so Radicale and Modoboa can run on different servers without sharing any file.

Requirements:

  • Radicale 3.3 or later

  • Modoboa 2.11 or later, which provides the rights endpoint. Modoboa is not a Python dependency of this package: it is usually installed on another server and only reached through its API.

Installation

You can install this package from PyPi using the following command:

pip install radicale-modoboa-rights

Configuration

Here is a configuration example:

[rights]
type = radicale_modoboa_rights

modoboa_rights_endpoint = https://<modoboa>/api/v2/calendar-rights/
# Credentials of Radicale's OAuth2 application in Modoboa
modoboa_client_id = <client id>
modoboa_client_secret = <client secret>

The OAuth2 application must be named Radicale and use the client credentials grant. It is the one created for Radicale’s authentication plugin.

Optional settings:

modoboa_token_endpoint (default: /api/o/token/ on the host of modoboa_rights_endpoint)

Modoboa’s OAuth2 token endpoint.

The following optional settings are in seconds:

modoboa_rights_cache_ttl (default: 60)

How long rights fetched from Modoboa are cached. This is also the maximum delay before a revoked access is enforced.

modoboa_rights_refresh_interval (default: 5)

When an access is denied, rights are fetched again if they are older than this, so new shares are usable almost immediately.

modoboa_rights_stale_max_age (default: 3600)

While the Modoboa API is unreachable, cached rights keep being used up to this age. Past it, access to other users’ collections is denied.

modoboa_rights_timeout (default: 2)

Timeout of requests to the Modoboa API.

modoboa_rights_retry_delay (default: 10)

After a failed request, the Modoboa API is not called again before this delay.

Permissions

Collection

Permissions

Own principal (user@domain/)

RW

Own calendars (user@domain/*)

rw

Domain shared calendars, for domain members

rwd

Domain collection, for its managers

RW

Domain shared calendars, for their managers

rw

User principals, for administrators

R

User calendars, for administrators

rw

Shared calendars

returned by Modoboa

The d permission forbids the deletion of the calendar itself when [rights] permit_delete_collection is enabled (the default).

Modoboa API

The plugin gets an access token from modoboa_token_endpoint with the OAuth2 client credentials grant (client id and secret sent with HTTP Basic). The token is kept until it is about to expire, or until the API refuses it.

It then sends POST requests to modoboa_rights_endpoint with the token (Authorization: Bearer <token>):

{"user": "bob@example.com"}

and expects the following answer:

{
  "admin_domains": ["example.com"],
  "managed_domains": ["example.com"],
  "shares": {"alice@example.com/Work": "rwd"}
}
admin_domains

Domains whose user calendars the user administers. "*" means every domain.

managed_domains

Domains whose shared calendars the user manages. "*" means every domain.

shares

Calendars shared with the user, as path: permissions. Only rwdDoOi permissions are accepted. For a share link token, the calendar the token gives access to.

All keys are optional.

Metadata

Release files for radicale-modoboa-rights 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for radicale-modoboa-rights 1.0.1
File Size Uploaded Provenance Actions
radicale_modoboa_rights-1.0.1.tar.gz 17.5 kB With provenance Details for radicale_modoboa_rights-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for radicale-modoboa-rights 1.0.1
File Interpreter ABI Platform Actions
radicale_modoboa_rights-1.0.1-py3-none-any.whl Python 3 none any Details for radicale_modoboa_rights-1.0.1-py3-none-any.whl

Total release size: 27.3 kB

Release files / radicale_modoboa_rights-1.0.1.tar.gz

Download URL radicale_modoboa_rights-1.0.1.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9c5c26d57a291eb41868cb06076e2f0a062ddfc58c6ae3467660355c65cb56d1
BLAKE2b-256 checksum
How to use checksums
0a8e20c519134ac701386efb3bac4826ed9a36de62f6383fddbfbf9f58edc771
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / radicale_modoboa_rights-1.0.1-py3-none-any.whl

Download URL radicale_modoboa_rights-1.0.1-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
874770badc1e8053a8b69e69ebffb1aca49ccab1f1a39cf5e71da0ee79990aee
BLAKE2b-256 checksum
How to use checksums
a6570c1c0abf6a012fa9a25a44f7a240326b34c48b17ba39fb3ef7d60a4a12d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for radicale-modoboa-rights 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for radicale_modoboa_rights-1.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page