Back to the main demo

IIIF authorization demo

This simulated Auth 2 provider runs entirely in your browser. Select Sign in, then approve access in the popup. No account or real credentials are involved; this is not an access-control system.

Allow popups for this page. The example uses a fake token and intercepts only its own demonstration URLs.

Loading restricted manifest.

Application integration

A real provider must implement the IIIF Auth services and enforce access on its server. The viewer reports access changes without exposing tokens:

new IIIFViewer('#viewer', {
  manifestUrl: 'https://provider.example/manifest',
  onAuthChange: ({ status, resourceType, error }) => {
    console.log(status, resourceType, error);
  },
});