Skip to main content

Public access to private things.

Project description

A TiddlyWeb plugin for providing unauthed access to private resources using “unguessable” URIs.

A URI at a uuid provides an id for a mapping to another URI, internal to the tiddlyweb server, with the active user being “faked”.

This works out okay because: * only GET is supported * there’s no state that gets carried to the next request

Tiddlers in a bag called PRIVATEER are used to maintain the mappings. The title of the tiddler is the uuid. The tiddler has two fields:

  • uri: the mapped to uri

  • user: the user to proxy the action as

An authenticated user can create a new mapping by making a POST to /_ as either a JSON dictionary with a ‘uri’ key, or a CGI form with a uri parameter.

URIs are not checked, you can store what you like and the system will happily do the internal redirect to it. If junk is stored, a 404 will result.

An authenticated user can list their own mappings by doing a GET to /_. A JSON dictionary of mappings to uris is returned. Only those mappings which have a user that matches the currently active user will be shown.

A user can delete a mapping by sending DELETE to the URI.

Copyright 2010 Chris Dent <cdent@peemore.com>

Licensed as TiddlyWeb, using the BSD 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

tiddlywebplugins.privateer-0.4.tar.gz (7.4 kB view details)

Uploaded Source

File details

Details for the file tiddlywebplugins.privateer-0.4.tar.gz.

File metadata

File hashes

Hashes for tiddlywebplugins.privateer-0.4.tar.gz
Algorithm Hash digest
SHA256 7a0b0f64d06513c52228f39a05a7c7455e3be1c044f9af4c3390bbf2341a0267
MD5 2a1dbe854d131482a15c5ef01364ffcf
BLAKE2b-256 216eee21d9f030793438a63ebcb09cc0f6bab4ac2a57a44ee0258b3abf06a0c5

See more details on using hashes here.

Provenance

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