Extension DataVic Main Functions


Extension Basics

Title
DataVic Main Functions
Name
ckanext-datavicmain
Type
Public extension
Description
General functions for DataVic IAR and ODP instances
CKAN versions
Download-Url (zip)
Download-Url commit date
2022-08-23
Url to repo
Category
Authentication & Security


Background Infos

Description (long)
Show details

Extension containing general utility functions and middleware specific to the DataVic Internal Access Registry (IAR) and Open Data Platform (ODP) instances. The primary feature is an Access Control Middleware implementation that restricts access to the CKAN instance for non-logged-in users. This access restriction can be toggled on or off via the ckan.iar configuration property, making it flexible for different deployment scenarios. When enabled (ckan.iar = True), the middleware ensures only authenticated users can access the portal, which is essential for internal data repositories. The implementation was adapted from existing CKAN 2.2 code from the DataVic project with minor adjustments to integrate into this modular extension. Includes jsonpickle as a dependency for serialization tasks.

Version
1.0
Version release date
2022-08-23
Contact name
Salsa Digital
Contakt email
Contact Url
(not set)


Installation Guide

Configuration hints

Add ‘datavicmain_dataset’ to ckan.plugins in your CKAN configuration. Access Control Middleware: Control instance access restriction by setting ckan.iar property in your config .ini file. Set ckan.iar = True to enable access restriction (only logged-in users can access the instance), or ckan.iar = False to allow public access. Use Cases: Enable for Internal Access Registry (IAR) deployments where authentication is required, disable for Open Data Platform (ODP) deployments with public access. Implementation Note: Middleware was adapted from CKAN 2.2 DataVic project code (https://github.com/salsadigitalauorg/datavic_ckan_2.2/blob/develop/iar/src/ckanext-datavic/ckanext/datavic/plugin.py) with minor adjustments. Dependencies: jsonpickle for serialization. Plugin Name: datavicmain_dataset. Fanstatic libraries support included.

Plugins to configure (ckan.ini)
datavicmain_dataset
CKAN Settings (ckan.ini)
# ckan.iar = True
DB migration to be executed
(not set)
<< back to Extensions