From c8b3374899d67a629248d498f98b6c7d84168070 Mon Sep 17 00:00:00 2001 From: dannyrb Date: Sat, 4 May 2019 21:49:46 -0400 Subject: [PATCH] Playing with different js configs --- public/config/example_openidc.js | 52 ++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 public/config/example_openidc.js diff --git a/public/config/example_openidc.js b/public/config/example_openidc.js new file mode 100644 index 000000000..93302f120 --- /dev/null +++ b/public/config/example_openidc.js @@ -0,0 +1,52 @@ +window.config = { + // default: '/' + routerBasename: '/', + // default: '' + relativeWebWorkerScriptsPath: '', + servers: { + 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', + // wadoUriRoot: 'http://localhost:8899/wado', + // qidoRoot: 'http://localhost:8899/dicom-web', + // wadoRoot: 'http://localhost:8899/dicom-web', + qidoSupportsIncludeField: false, + imageRendering: 'wadors', + thumbnailRendering: 'wadors', + requestOptions: { + auth: 'orthanc:orthanc', + logRequests: true, + logResponses: false, + logTiming: true, + }, + }, + ], + }, + oidc: [ + { + authServerUrl: 'http://127.0.0.1/auth/realms/master', + // It looks like we have this route hardcoded in `OHIFStandaloneViewer.js` + authRedirectUri: '/callback', // backup: /studylist\ + // Also hardcoded? + postLogoutRedirectUri: '/logout-redirect.html', + responseType: 'id_token', + scope: 'openid', + clientId: 'pacs', + }, + // ccc.js + // { + // authRedirectUri: "http://localhost:5000/callback", + // postLogoutRedirectUri: "http://localhost:5000/logout-redirect.html", + // responseType: "id_token token", + // scope: "email profile openid", + // revokeAccessTokenOnSignout: true, + // extraQueryParams: { + // kc_idp_hint: "crowds-cure-cancer-auth0-oidc", + // client_id: "crowds-cure-cancer" + // } + // } + ], +}