RFC 003: Asset Access
Last updated
Last updated
Last updated: 02 November 2018.
Wellcome Collection digital assets are primarily publically accessible. In some cases there are restrictions on digital assets for items that are deemed sensitive (by virtue of law or public sensibility).
Restrictions on the availability of items can be broken down into multiple roles.
We need to restrict access for certain assets based on their access provisions and the authentication status / role of the viewer.
In addition we need to be able to serve these assets via a CDN (in our case CloudFront). This means not requiring sign-in for all users to prevent the cache varying on authentication tokens. The implication for users being that they will only be asked to sign in when accessing restricted assets.
Some digital assets served via the IIIF Image API compliant server Loris, are restricted and require authentication before viewing. The IIIF Image standard requires that image asset URLs follow the described syntax.
We propose to build an authentication solution based on introducing an origin-response lambda@edge function.
The authentication flow is as follows: