Skip to main content

tiddlywebplugins.magicuser is a tool to extend the capabilities of a user in TiddlyWeb.

When an authentic user is extracted from the credentials extractor system, the username and their roles are places into the WSGI environment as the value of a tiddlyweb.usersign key.

magicuser extends these capabilities by providing a model for adding additional keys and values to the tiddlyweb.usersign dictionary.

It does this by looking in a bag, by default called MAGICUSER, for a tiddler with the same title as the value of the name key in the usersign dict. If that tiddler is present, it is loaded and it’s attributes and fields are used (as shown in the code) to add to the usersign.

BEFORE the magicuser bag is inspected, a username translation layer is engaged. This allow N different authenticated usersigns to be treated as one core usersign within TiddlyWeb. It works as follows:

A tiddler with a title that is the same as the extracted usersign name is retrieved from a bag by default called MAPUSER. If the tiddler exists and has the field mapped_user the value of the field replaces the name in the usersign. It is that name that is then used during the magicuser stage.

This plugin provides no facility for putting tiddlers in either the MAGICUSER or MAPUSER bags. Other code (either client side or server side) is expected to do that.

Metadata

Release files for tiddlywebplugins.magicuser 0.5

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

Source distribution (sdist)

Source distribution for tiddlywebplugins.magicuser 0.5
File Size Uploaded Provenance
tiddlywebplugins.magicuser-0.5.tar.gz 6.1 kB Without provenance Details

Release files / tiddlywebplugins.magicuser-0.5.tar.gz

Download URL tiddlywebplugins.magicuser-0.5.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c51861191ede6a4d676fb2814a5076ed54a90ad54c73537e453a4a92725f0c02
BLAKE2b-256 checksum
How to use checksums
c58cbf3ae030f667d375f9a60a5998aaf3de9c6dbf1921e9bf91ab0fedbb63a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for tiddlywebplugins.magicuser 0.5

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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