Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openseadragon requests images from Cantaloupe as anonymous #2011

Open
dannylamb opened this issue Dec 16, 2021 · 1 comment
Open

Openseadragon requests images from Cantaloupe as anonymous #2011

dannylamb opened this issue Dec 16, 2021 · 1 comment
Labels
Repository:Open Sea Dragon Issues pertaining to the repository: https://github.com/Islandora/openseadragon

Comments

@dannylamb
Copy link
Contributor

Currently, Openseadragon makes no attempts to provide credentials when requesting images from Cantaloupe. If files on Drupal are properly restricted, then even when going to a page as admin, you'll get a 403 in the Openseadragon viewer. Drupal is requiring its JWT token in the Authorization header from the AJAX request that Openseadragon sends.

This can be accomplished in two parts:

  1. Adding the Authorization header to the AJAX request by properly configuring the Openseadragon viewer
  2. Adding a delegate script to Cantaloupe that passes along the Authorization header so it's available to the HttpSource
@seth-shaw-unlv
Copy link
Contributor

Nice! We've worked around it by simply adding a context condition that only uses the OpenSeadragon viewer when the media is accessible by Anon, but getting it to work with authenticated users is the right way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Repository:Open Sea Dragon Issues pertaining to the repository: https://github.com/Islandora/openseadragon
Projects
Status: No status
Development

No branches or pull requests

3 participants