Summary: | Support for passing credentials with all HTTP requests | ||
---|---|---|---|
Product: | Orthanc | Reporter: | Thibault Nélis <tn> |
Component: | Stone of Orthanc | Assignee: | Sébastien Jodogne <s.jodogne> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | ||
Priority: | --- | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All |
Description
Thibault Nélis
2021-03-24 17:54:05 CET
This is implemented by the following changeset (will be part of 2.0 release of the Stone Web viewer): https://hg.orthanc-server.com/orthanc-stone/rev/28755e42c007 For instance, if the user opens the Stone Web viewer using the following URL: http://.../index.html?study=<StudyInstanceUID1>&token=Hello Then each request to the DICOMweb server will set the HTTP header: "Authorization: Bearer Hello". Note that it is actually *not* possible to directly expose the XMLHttpRequest objects in JavaScript, as such objects are internally created by the C "Fetch" API of WebAssembly: https://emscripten.org/docs/api_reference/fetch.html |