Skip to content

Allow auth_service to be array of hashes, allow override of top level context#120

Open
masaball wants to merge 2 commits into
mainfrom
context_and_auth
Open

Allow auth_service to be array of hashes, allow override of top level context#120
masaball wants to merge 2 commits into
mainfrom
context_and_auth

Conversation

@masaball

@masaball masaball commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Avalon is working on updating their IIIF auth service to 2.0 which requires adding a value to the top level context. This commit adds the ability to override the default context in V3 manifests by defining a context method on the manifest presenter and passing an array of values.

Additionally, this commit changes the behavior of the auth_service so that implementers can pass in an array of hashes. This is to facilitate any implementations that may want to have Auth 1 and Auth 2 services defined, or adding additional auth services if and when the IIIF community defines additional versions.

masaball added 2 commits June 12, 2026 09:45
Avalon is working on updating their IIIF auth servicve to 2.0 which
requires adding a value to the top level context. This commit adds the
ability to override the default context by defining a `context` method
on the manifest presenter and passing an array of values.

Additionally, this commit changes the behavior of the `auth_service` so
that implementers can pass in an array of hashes. This is to facilitate
any implementations that may want to have Auth 1 and Auth 2 services
defined, or adding additional auth services if and when the IIIF
community defines additional versions.
@masaball masaball requested a review from cjcolvar June 15, 2026 13:32

@cjcolvar cjcolvar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about instead of allowing auth_service to be an array of hashes adding an auth2_service method on the record (so there could be both an auth_service and auth2_service)? Then it would be easy to automatically add the additional context at the top level (and not have to open up the top-level context to anything the record sends).

]
end

it '' do

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
it '' do
it 'creates an array of services' do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants