Skip to content

Private File and Group access control with Image IIIF server #4

Description

@kylehuynh205

Condition:

  • Private file system is enabled
  • Group modules is enabled to handle access control

Issue:

OpenSeadragon Viewer is unable to load the image

Diagnose

Private file system and Group module blocks access if the object is private (public, works as normal)

How OpenSeadragon Viewer works ?

  • Openseadragon Viewer === send request (with image URI) ===> Cantaloupe (iiif server) === send the request to Source (in our case is Drupal itself) ====> return iif json file
  • If this loop returns 200, the OSD viewer will load the image, but if the object is private, it's return 403

Potential Solution:

Intercept and override header the returned request from Cantaloupe to Drupal with the following module: https://github.com/digitalutsc/private_files_adapter
==> fooling Drupal think that it's not Basic Authentication request (otherwise will be blocked when it's reach at route /system/file/{file uri}

What's next ?

  • Need to test the potential solution with Book Viewer (Mirador) interface.
  • Adding more access control based on roles of currently login user (May not need)

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions