ckanext-laissezpasser
This extension expands on the flexible resource permissioning provided by 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 implemented 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 ckanext-initiatives.
Installation
To install ckanext-laissezpasser:
- Activate your CKAN virtual environment
- Clone the source and install it on the virtualenv
- Add
laissezpasser to the ckan.plugins setting
- Restart CKAN
- Create the necessary database tables:
ckan -c /etc/ckan/default/ckan.ini db upgrade -p laissezpasser
Config settings
# The number of days for a new pass to be valid
# (optional, default: 7).
ckanext.laissezpasser.duration = 1
It must be listed in the configuration file before the initiatives extension and any other similar extensions that use/override auth functions or chained auth functions.
License
AGPL