forked from ProjectMirador/mirador
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
COLUMBIA: Support auth2 style external authentication
- permit authentication service not to have id attribute - components/IIIFAuthentication has a prop to indicate that auth service is external - containers/IIIFAuthentication.js identifies whether authService is external and sets key if necessary - state/selectors/auth.js sets a default authService key if external service has no id (expected in auth2) - remove unnecessary invocation of probeResponses selector in state/selectors/auth.js - state/sagas/auth.js handles probeJson or infoJson, and defaults external auth service ids when missing (per auth2) - src/state/reducers/auth.js ensures authService state has id prop if resolved but not requested
- Loading branch information
Showing
9 changed files
with
209 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"@context": "http://iiif.io/api/presentation/3/context.json", | ||
"id": "https://auth.example.org/external/my-video1/manifest.json", | ||
"type": "Manifest", | ||
"label": { | ||
"en": [ | ||
"An externally authorized video" | ||
] | ||
}, | ||
"items": [ | ||
{ | ||
"id": "https://auth.example.org/external/my-video1", | ||
"type": "Canvas", | ||
"label": { | ||
"en": [ | ||
"Canvas with a single IIIF video" | ||
] | ||
}, | ||
"height": 3024, | ||
"width": 4032, | ||
"items": [ | ||
{ | ||
"id": "https://auth.example.org/my-video/page", | ||
"type": "AnnotationPage", | ||
"items": [ | ||
{ | ||
"id": "https://auth.example.org/my-video/annotation", | ||
"type": "Annotation", | ||
"motivation": "painting", | ||
"body": { | ||
"id": "https://auth.example.org/my-video.mp4", | ||
"type": "Video", | ||
"service": [ | ||
{ | ||
"id": "https://auth.example.org/probe/my-video", | ||
"type": "AuthProbeService2", | ||
"service" : [ | ||
{ | ||
"type": "AuthAccessService2", | ||
"profile": "external", | ||
"label": { "en": [ "External Authentication" ] }, | ||
"service" : [ | ||
{ | ||
"id": "https://auth.example.org/token", | ||
"type": "AuthAccessTokenService2" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.