Can't inject JWT in Instance call ?
See original GitHub issueHi there,
I have my DicomWeb server accessible through a reverse proxy using a JWT auth mechanisme, so I need to inject the Authorization Bearer in the requests going from OHIF.
I did this
servers: {
dicomWeb: [
{
name: “Orthanc”,
wadoUriRoot:
“/api/wado”,
qidoRoot:
“/api/dicom-web”,
wadoRoot:
“/api/dicom-web”,
qidoSupportsIncludeField: true,
imageRendering: “wadors”,
thumbnailRendering: “wadors”,
enableStudyLazyLoad: true,
requestOptions : {
auth: (options) => { return Bearer ${token}
}
}
}
]
},
It is working properly to get the /series /metadata APIs but does not work for the /instances/{UID}/frames/1 API. The outgoing request do not includes au authorization header for Instance fetching while it is OK for series and metadata,
How can I set the token to be included in every http request of OHIF ?
thanks for help,
Best regards,
Salim
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (1 by maintainers)
Top GitHub Comments
maybe related to https://github.com/OHIF/Viewers/issues/1736
It work by passing the token in the URL parameter.
Le lun. 14 févr. 2022 à 17:25, Pavan Kumar Jadda @.***> a écrit :