Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth2 support #3790

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft

Auth2 support #3790

wants to merge 8 commits into from

Conversation

barmintor
Copy link
Contributor

cf #3789

@barmintor barmintor force-pushed the issue-3789_auth2 branch 3 times, most recently from 61326f2 to 2221286 Compare October 3, 2023 18:47
…ne iiif images

- jest specs for image service identification
- jest specs for resource type filters
- ProjectMirador#3789
- IIIF Auth2 services will be members of a probe service
- ProjectMirador#3789
…3789)

- DRY search routines into functions defined in getServices
- all routines should look for Auth2 types and Auth1 profiles
- include search for uncoducmented Auth1 implementation of explicit probe service
- correct a spec name in accessTokens.test.js
- stop refetching accessTokens if state has an ok true/false attribute
- ProjectMirador#3789
- src/state/sagas/auth.js
- src/state/sagas/iiif.js
- src/state/sagas/windows.js
- src/state/selectors/auth.js
- src/state/selectors/canvases.js
Comment on lines +1 to +27
/** values for type/@type that indicate an image content resource */
const imageTypes = ['Image', 'StillImage', 'dctypes:Image', 'dctypes:StillImage'];
Object.freeze(imageTypes);

/** values for type/@type that indicate a sound content resource */
const audioTypes = ['Audio', 'Sound', 'dctypes:Audio', 'dctypes:Sound'];
Object.freeze(audioTypes);

/** values for type/@type that indicate a text content resource */
const textTypes = ['Document', 'Text', 'dctypes:Document', 'dctypes:Text'];
Object.freeze(textTypes);

/** values for type/@type that indicate a video content resource */
const videoTypes = ['Video', 'MovingImage', 'dctypes:Video', 'dctypes:MovingImage'];
Object.freeze(videoTypes);

/** values for profile that indicate an image service */
const imageServiceProfiles = [
'level2',
'level1',
'level0',
'http://iiif.io/api/image/2/level2.json',
'http://iiif.io/api/image/2/level1.json',
'http://iiif.io/api/image/2/level0.json',
];

Object.freeze(imageServiceProfiles);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if these could/should go into settings somewhere so downstream apps can customize them?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

something similar to auth.serviceProfiles maybe?

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