Skip to content

Third party auth scenarios that require non-cookie credentials #2017

Open
@tomcrane

Description

@tomcrane

Auth 1.0 assumes that the client's credentialled requests for content resources are made with cookies.
This isn't a 100% requirement - the auth spec would work just as well if the server were authorising based on IP address.

IP origin and cookies share one characteristic - neither of them require the client to do anything when it makes requests for content resources - sending of cookies, and having a particular origin, are "ambient" as far as the client is concerned. They don't need a spec to do anything.

In some AV scenarios, especially where a JavaScript library is being used to support adaptive bit rate media, credentials can be presented as Authorisation header tokens, and sometimes as query string parameters. In this case, the client does need to intervene in the request for chunks, adding in credentials.

Example: https://stackoverflow.com/questions/56647256/hls-js-required-send-http-header

Is there a way a viewer could implement an IIIF Auth interaction pattern that remains independent of particular auth mechanisms, yet still offers a hook for modifying the request?

The answer to this might well be "no", or "not without making the IIIF Auth spec a horrible complex mess", but the scenario is real and I wonder if there is some way of accommodating it with allowed points at which some sort of callback could happen.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions