digitalutsc/private_files_adapter

This module override access control for private file system with Cantaloupe

Installs: 1 250

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 6

Forks: 0

Language:Ruby

Type:drupal-module

1.0.0-beta5 2024-02-14 01:43 UTC

This package is auto-updated.

Last update: 2024-06-14 02:28:24 UTC


README

Related issue: digitalutsc/islandora_group#4

Download Islandora Lite playbook:

composer require digitalutsc/private_files_adapter

OR

git clone -b islandora_lite https://github.com/digitalutsc/islandora-playbook.git islandora-lite-playbook

Apply a patch for Openseadragon Viewer

cd /var/www/html/drupal/web/modules/contrib/openseadragon  
wget https://raw.githubusercontent.com/digitalutsc/private_files_adapter/main/scripts/openseadragon.authentication.patch
patch -p1 < openseadragon.authentication.patch

How to adjust Cantaloupe in Islandora Lite Playbook

  • Copy the delegate.rb to /opt/cantaloupe
sudo cp /var/www/html/drupal/web/modules/custom/private_files_adapter/scripts/delegates.rb /opt/cantaloupe
  • Change configuration of Cantaloupe to enable Delegate Script for Lookup
sudo mv /opt/cantaloupe/cantaloupe.properties /opt/cantaloupe/cantaloupe.bk
sudo cp /var/www/html/drupal/web/modules/custom/private_files_adapter/scripts/cantaloupe.properties /opt/cantaloupe
  • Restart Cantaloupe
sudo service tomcat9 restart

Enable the module

git clone https://github.com/digitalutsc/private_files_adapter.git /var/www/html/drupal/web/modules/contrib/private_files_adapter
drush en -y private_files_adapter

Create and set JWT keys