sul-dlss-deprecated / universalviewer

The Universal Viewer is a community-developed open source project on a mission to help you share your content with the world
http://universalviewer.io
Other
0 stars 1 forks source link

Repeated auth attempts for a single object #36

Closed mejackreed closed 7 years ago

mejackreed commented 7 years ago

When a user is logging in with an auth service, does it need to be repeated for every info.json response?

Manifest in question:

```json { "@context": "http://iiif.io/api/presentation/2/context.json", "@id": "https://sul-purl-uat.stanford.edu/fr352bj3947/iiif/manifest", "@type": "sc:Manifest", "label": "Cuzco, Published volume, 1970", "attribution": "Provided by the Stanford University Libraries", "logo": { "@id": "https://stacks.stanford.edu/image/iiif/wy534zh7137%2FSULAIR_rosette/full/400,/0/default.jpg", "service": { "@context": "http://iiif.io/api/image/2/context.json", "@id": "https://stacks.stanford.edu/image/iiif/wy534zh7137%2FSULAIR_rosette", "profile": "http://iiif.io/api/image/2/level1.json" } }, "seeAlso": { "@id": "https://sul-purl-uat.stanford.edu/fr352bj3947.mods", "format": "application/mods+xml" }, "viewingHint": "paged", "metadata": [ { "label": "Title", "value": "Cuzco, Published volume, 1970" }, { "label": "Relation", "value": "Pedro Beltrán and Miriam Kropp Beltrán papers, circa 1914-1979" }, { "label": "PublishDate", "value": "2015-09-02T10:12:15-07:00" } ], "thumbnail": { "@id": "https://sul-stacks-uat.stanford.edu/image/iiif/fr352bj3947%2Ffr352bj3947_00_0004/full/!400,400/0/default.jpg", "@type": "dctypes:Image", "format": "image/jpeg", "service": { "@context": "http://iiif.io/api/image/2/context.json", "@id": "https://sul-stacks-uat.stanford.edu/image/iiif/fr352bj3947%2Ffr352bj3947_00_0004", "profile": "http://iiif.io/api/image/2/level1.json" } }, "sequences": [ { "@id": "https://sul-purl-uat.stanford.edu/fr352bj3947#sequence-1", "@type": "sc:Sequence", "label": "Current order", "canvases": [ { "@id": "https://sul-purl-uat.stanford.edu/fr352bj3947/iiif/canvas/fr352bj3947_1", "@type": "sc:Canvas", "label": "Page 1", "height": 3942, "width": 2502, "images": [ { "@id": "https://sul-purl-uat.stanford.edu/fr352bj3947/iiif/annotation/fr352bj3947_1", "@type": "oa:Annotation", "motivation": "sc:painting", "resource": { "@id": "https://sul-stacks-uat.stanford.edu/image/iiif/fr352bj3947%2Ffr352bj3947_00_0004/full/full/0/default.jpg", "@type": "dctypes:Image", "format": "image/jpeg", "height": 3942, "width": 2502, "service": { "@context": "http://iiif.io/api/image/2/context.json", "@id": "https://sul-stacks-uat.stanford.edu/image/iiif/fr352bj3947%2Ffr352bj3947_00_0004", "profile": "http://iiif.io/api/image/2/level1.json", "service": [ { "@id": "https://sul-stacks-uat.stanford.edu/auth/iiif", "profile": "http://iiif.io/api/auth/1/login", "label": "Log in to access all available features.", "confirmLabel": "Login", "failureHeader": "Unable to authenticate", "failureDescription": "The authentication service cannot be reached. If your browser is configured to block pop-up windows, try allowing pop-up windows for this site before attempting to log in again.", "service": [ { "@id": "https://sul-stacks-uat.stanford.edu/image/iiif/token", "profile": "http://iiif.io/api/auth/1/token" } ] } ] } }, "on": "https://sul-purl-uat.stanford.edu/fr352bj3947/iiif/canvas/fr352bj3947_1" } ] }, ... ```
mejackreed commented 7 years ago

Originally reported here: https://github.com/sul-dlss/sul-embed/issues/802

cc @edsilv