2019-05-05 03:49:46 +02:00
|
|
|
window.config = {
|
|
|
|
|
routerBasename: '/',
|
2019-07-08 21:29:59 +02:00
|
|
|
showStudyList: true,
|
2019-05-05 03:49:46 +02:00
|
|
|
servers: {
|
2019-05-09 16:43:59 +02:00
|
|
|
// This is an array, but we'll only use the first entry for now
|
2019-05-05 03:49:46 +02:00
|
|
|
dicomWeb: [
|
|
|
|
|
{
|
|
|
|
|
name: 'Orthanc',
|
|
|
|
|
wadoUriRoot: 'http://127.0.0.1/pacs/wado',
|
|
|
|
|
qidoRoot: 'http://127.0.0.1/pacs/dicom-web',
|
|
|
|
|
wadoRoot: 'http://127.0.0.1/pacs/dicom-web',
|
|
|
|
|
qidoSupportsIncludeField: false,
|
|
|
|
|
imageRendering: 'wadors',
|
|
|
|
|
thumbnailRendering: 'wadors',
|
2019-05-08 19:03:17 +02:00
|
|
|
// REQUIRED TAG:
|
2019-05-08 19:06:15 +02:00
|
|
|
// TODO: Remove tag after https://github.com/OHIF/ohif-core/pull/19 is merged and we bump version
|
2019-09-09 21:49:12 +02:00
|
|
|
// requestOptions: {
|
|
|
|
|
// undefined to use JWT + Bearer auth
|
|
|
|
|
// auth: 'orthanc:orthanc',
|
|
|
|
|
// },
|
2019-05-05 03:49:46 +02:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
2019-05-09 16:43:59 +02:00
|
|
|
// This is an array, but we'll only use the first entry for now
|
2019-05-05 03:49:46 +02:00
|
|
|
oidc: [
|
|
|
|
|
{
|
2019-05-07 21:42:11 +02:00
|
|
|
// ~ REQUIRED
|
|
|
|
|
// Authorization Server URL
|
2019-05-09 16:43:59 +02:00
|
|
|
authority: 'http://127.0.0.1/auth/realms/ohif',
|
2019-05-07 21:42:11 +02:00
|
|
|
client_id: 'ohif-viewer',
|
2019-05-08 19:06:15 +02:00
|
|
|
redirect_uri: 'http://127.0.0.1/callback', // `OHIFStandaloneViewer.js`
|
|
|
|
|
// "Authorization Code Flow"
|
|
|
|
|
// Resource: https://medium.com/@darutk/diagrams-of-all-the-openid-connect-flows-6968e3990660
|
|
|
|
|
response_type: 'code',
|
2019-05-07 21:42:11 +02:00
|
|
|
scope: 'openid', // email profile openid
|
|
|
|
|
// ~ OPTIONAL
|
|
|
|
|
post_logout_redirect_uri: '/logout-redirect.html',
|
2019-05-05 03:49:46 +02:00
|
|
|
},
|
|
|
|
|
],
|
2019-09-06 03:52:45 +02:00
|
|
|
};
|