Squashed commit of the following:
commit18d5b6dd9aAuthor: mario <dev.mario@sismedika@gmail.com> Date: Tue May 13 16:15:37 2025 +0700 add: shortlink DoB auth page commit7cad1c5e05Author: mario <dev.mario@sismedika@gmail.com> Date: Tue May 13 08:52:45 2025 +0700 prevent patient to see Worklist commit7f4548e18cAuthor: mario <dev.mario@sismedika@gmail.com> Date: Tue May 13 08:51:38 2025 +0700 add: Login page and route commiteaa18b8389Author: mario <dev.mario@sismedika@gmail.com> Date: Fri May 9 16:40:02 2025 +0700 edit: patch XHR Request dengan coverage lebih luas dari monkeyPatchXML commit86ad0b38ddAuthor: padmanto <padmanto@gmail.com> Date: Tue Apr 29 09:42:53 2025 +0700 Monkey Patch XMLHttpRequest -- inject bearer token and verify response commitcb380a521dAuthor: padmanto <padmanto@gmail.com> Date: Tue Apr 29 08:44:52 2025 +0700 default use cloud pacs commit5f56d06fcdAuthor: mario <mario@sismedika.com> Date: Sat Apr 26 23:38:18 2025 +0700 edit ip pdf dan cloud
This commit is contained in:
@@ -85,6 +85,14 @@ function createDicomWebApi(dicomWebConfig, servicesManager) {
|
||||
if (authHeaders && authHeaders.Authorization) {
|
||||
xhrRequestHeaders.Authorization = authHeaders.Authorization;
|
||||
}
|
||||
|
||||
const authToken = sessionStorage.getItem('ohif-auth-token');
|
||||
if (!authToken) {
|
||||
window.location.href = '/login';
|
||||
return;
|
||||
}
|
||||
xhrRequestHeaders.Authorization = `Bearer ${authToken}`;
|
||||
|
||||
return xhrRequestHeaders;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user