Mercurial > hg > orthanc-stone
comparison Applications/StoneWebViewer/NOTES.txt @ 1761:28755e42c007
Fix issue #197 (Support for passing credentials with all HTTP requests)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 10 May 2021 11:51:53 +0200 |
parents | b8d19f53aaca |
children | 604fc328dc10 |
comparison
equal
deleted
inserted
replaced
1760:e38b9875a969 | 1761:28755e42c007 |
---|---|
90 | 90 |
91 If the "selectedStudies" is not provided, then all the studies are | 91 If the "selectedStudies" is not provided, then all the studies are |
92 displayed at the startup. | 92 displayed at the startup. |
93 | 93 |
94 | 94 |
95 Authorization to the DICOMweb server (new in 2.0) | |
96 ==================================== | |
97 | |
98 The function "stone.AddHttpHeader()" exposed in the WebAssembly API | |
99 can be used to add custom HTTP headers to each XMLHttpRequest that is | |
100 sent to the DICOMweb server. This notably gives the opportunity to | |
101 provide an authentication token using the "Authorization" HTTP header. | |
102 | |
103 The Vue.js application will set the "Authorization" HTTP header to the | |
104 value "Bearer <token>" where "<token>" is value of the GET argument | |
105 "token" provided when opening "index.html". If the "token" GET | |
106 argument is absent, the "Authorization" header is not altered. | |
107 | |
108 For instance, if the user opens the following URL: | |
109 | |
110 http://.../index.html?study=<StudyInstanceUID1>&token=Hello | |
111 | |
112 Then each request to the DICOMweb will set the HTTP header: | |
113 "Authorization: Bearer Hello" | |
114 | |
115 | |
95 Dynamic actions using messages | 116 Dynamic actions using messages |
96 ============================== | 117 ============================== |
97 | 118 |
98 Some actions can be dynamically triggered in the Stone Web viewer from | 119 Some actions can be dynamically triggered in the Stone Web viewer from |
99 another Web page. This is done by using the "window.postMessage()" | 120 another Web page. This is done by using the "window.postMessage()" |