Give access to urls by signing the url with user credentials.


SCM system : Git (git)

Author: Marc Worrell

Project source url:

This module needs Zotonic 0.11 or newer

URLs are signed using a user specific secret. This secret is stored in the identity table. Accessing a signed url gives access to that single request using all the access permissions of the signing user. Only that single url will be accessible, any other url or request will use the credentials of the requesting user.

URLs signed by this module look like this:

In the template it can be created by adding the z_access_url argument:

{% url page id=20652 z_access_url %} 

The z_access_url argument is picked up by mod_access_url which then signs the generated url with the z_access_url_noncez_access_url_token and z_access_url_sig arguments. Note that there must be an authenticated user to be able to sign an url.


Zotonic >= 0.10:
zotonic modules install mod_access_url
Zotonic <= 0.9:
zotonic installmodule mod_access_url
Zotonic <= 0.6:
git clone mod_access_url

Leave a comment