
ckanext-laissezpasser
This extension expands on the flexible resource permissioning provided by
ckanext-initiatives
https://github.com/BioplatformsAustralia/ckanext-initiatives.
It enables systems administrators to be able to provide time limited
access to particular users to download specific datasets irrespective
of if they are members of the relevant project.
The extension intercepts the same authentication calls as
ckanext-initiatives and is implemented as a chained auth function.
A frontend and API calls are implmented to view, add and remove passes.
The name of the extension is derived from the French
laissez-passer
noun
a permit; pass, especially one issued in lieu of a passport.
Requirements
Compatibility with core CKAN versions:
| CKAN version |
Compatible? |
| 2.8 and earlier |
not tested |
| 2.9 |
yes |
| 2.10 |
not yet |
| 2.11 |
not yet |
It is strongly suggested to use this extension with
https://github.com/BioplatformsAustralia/ckanext-initiatives
Installation
To install ckanext-laissezpasser:
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
Clone the source and install it on the virtualenv
git clone https://github.com/BioplatformsAustralia/ckanext-laissezpasser.git
cd ckanext-laissezpasser
pip install -e .
pip install -r requirements.txt
Add laissezpasser to the ckan.plugins setting in your CKAN
config file (by default the config file is located at
/etc/ckan/default/ckan.ini).
Restart CKAN. For example if you’ve deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
Create the necessary database tables
ckan -c /