ProjectMirador / mirador

An open-source, web-based 'multi-up' viewer that supports zoom-pan-rotate functionality, ability to display/compare simple images, and images with annotations.
https://projectmirador.org
Apache License 2.0
548 stars 258 forks source link

GET images using authorization token #3893

Open simsac1 opened 6 months ago

simsac1 commented 6 months ago

Hi, I'm using mirador and I'm able to open it.

Screenshot 2024-03-08 alle 17 43 31

The problem is that the images are not loaded because they are protected and the server return http status 403. How can I add token to image's request to authenticate the request and get the images?

barmintor commented 4 weeks ago

This is a general issue with IIIF Auth. We discussed it on the Slack at https://iiif.slack.com/archives/C01CMCD760P/p1709076375754289

barmintor commented 4 weeks ago

Long story short you could have your probe service return a token and then fork Mirador to include a ServiceWorker to include it, but I don't think there's a straightforward way to do it.