Skip to main content

redomino.tokenroleform

This product allows unregistered users to download or view a private content by simply filling a contact form with personal data and a valid e-mail address; after submitting the form, an automated mail containing the link to the requested private content is sent to the user who made the request.

Basically the request is carried out by PloneFormGen action adapter, which activates a temporary access token thanks to redomino.tokenrole, and sends it via mail. The token’s validity only lasts for a few minutes, which means it has to be used quickly. This was done in order to avoid unauthorized sharing on social networks or other platforms.

How to use tokenroleform

Step by step:

  • install redomino.tokenroleform

  • create a PloneFormGen

  • add a ‘TokenRoleMailerAdapter’ and configure it:

    • choose an existing private document you want to share (field “Private doc”)

    • validity (minutes), the token validity. Default: 60 minutes

    • Extract Recipient (choose “From Your E-Mail Address” or another email field)

In the message tab you can configure fields putting a ${TOKEN_URL} in order to add a textual link. If you prefer an html link go to the Template tab and add this html:

<a tal:define=”token_url python:request.get(‘TOKEN_URL’);”

tal:attributes=”href token_url;” tal:content=”token_url”>ACCESS LINK</a>

Tokenrole form screenshot:

https://github.com/redomino/redomino.tokenroleform/blob/master/docs/resources/tokenroleformconf.png?raw=true

Token role form configuration

Authors

Changelog

0.5 (2013-06-25)

  • fixed MANIFEST.in [sithmel]

  • Modified setup.py. [davidemoro]

  • Updated README.txt [davidemoro]

0.4 (2012-06-29)

  • Added screenshot and updated README.txt. [davidemoro]

0.3 (2012-06-28)

  • Modified setup.py. [davidemoro]

0.2 (2012-06-21)

  • Updated README.txt [davidemoro, dpollino]

  • First public release [davidemoro]

0.1 (2012-06-19)

  • Initial release [davidemoro]

Metadata

Release files for redomino.tokenroleform 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 redomino.tokenroleform 0.5
File Size Uploaded
redomino.tokenroleform-0.5.zip 73.3 kB Details

Release files / redomino.tokenroleform-0.5.zip

Download URL redomino.tokenroleform-0.5.zip
Size 73.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1a25e2e1943c41545eecf749450486808eba4f3d72598684d4fa51892b7a80ea
BLAKE2b-256 checksum
How to use checksums
6b7375f7713fbca9385b706a516916d92072a657e93d0509a69adc90e9c360b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.5 This release

1 release file

0.4

1 release file

0.3

1 release file

0.2

1 release file

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