Skip to main content

Token Role Form

Project description

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>

Authors
=======

* Davide Moro <davide.moro@redomino.com> - Idea and main implementation



Change history
**************

Changelog
=========

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]

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

redomino.tokenroleform-0.3.zip (21.5 kB view details)

Uploaded Source

File details

Details for the file redomino.tokenroleform-0.3.zip.

File metadata

File hashes

Hashes for redomino.tokenroleform-0.3.zip
Algorithm Hash digest
SHA256 74aa46edc5fab319c0a741ef2cae8523c51249ea11cccb34df83d904b9d26280
MD5 ca1ab0684bc0c7bfd29c221293d6ea72
BLAKE2b-256 831d53d9774d995683156932f93567b2e8e84d30bfc1bc71a264797e1685f93c

See more details on using hashes here.

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