Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

weasis http basic auth

406 views
Skip to first unread message

Rajul Shah

unread,
Nov 28, 2015, 7:55:10 PM11/28/15
to dcm4che
Hi,
I am using apache basic auth to restrict access to our chee, wado and pacs-connector which are sitting behind the firewall and on the same server and are proxied via apache (thanks to earlier email thread for pointers ). We are using weasis (2.05)  to view the images.
1. We have the proxy and basic auth working when the user access the url: http://server.com/weasis-pacs-connector/viewer?patientID=ABC-123
2. The jnlp is downloaded after successful basic auth.
3. Once the jnlp is opened (java webstart) it pops up the basic auth window in java asking for credentials
4. Once the basic auth is successful weasis displays all images successfully.

Question:
How do we pass parameter to weasis such that we can embed the basic auth in the URL i.e
http://user:pass...@server.com such the subsequently generated jnlp will not ask for the same information when weasis is loading images

I have looked at jnlp modification options https://github.com/nroduit/weasis-pacs-connector but not gotten very far. Any pointers appreciated

Nicolas Roduit

unread,
Dec 1, 2015, 1:28:55 PM12/1/15
to dcm4che
The authentication in an URL is the old way to do and most of system doesn't support it anymore. It should be passed through the http header. This job must be done by your proxy system.

In weasis-pacs-connector configuration, you can add values in the http headers with the parameters "wado.httpTags=" but it is less recommended than the proxy management because the values will transit to the client.

And if you have a proxy for handling authentication and redirection, do not forget to set the proxy hostname in the parameter "hosts.allow=".


Le dimanche 29 novembre 2015 01:55:10 UTC+1, Rajul Shah a écrit :
Hi,
I am using apache basic auth to restrict access to our chee, wado and pacs-connector which are sitting behind the firewall and on the same server and are proxied via apache (thanks to earlier email thread for pointers ). We are using weasis (2.05)  to view the images.
1. We have the proxy and basic auth working when the user access the url: http://server.com/weasis-pacs-connector/viewer?patientID=ABC-123
2. The jnlp is downloaded after successful basic auth.
3. Once the jnlp is opened (java webstart) it pops up the basic auth window in java asking for credentials
4. Once the basic auth is successful weasis displays all images successfully.

Question:
How do we pass parameter to weasis such that we can embed the basic auth in the URL i.e
http://user:password@server.com such the subsequently generated jnlp will not ask for the same information when weasis is loading images

Adrian Schiopu

unread,
Nov 9, 2019, 5:16:25 PM11/9/19
to dcm4che
Hello,
Please be more specific with including credentials in http header
I use  the orthanc server, and require autentification. 
I use Weasis 3.5.3 installed from Microsoft store
When the server does not require credentials,  weasis  work fine, no problems, but when I modify it to require user and pass, the weasis  doesn't download the images, only show the patients, and studies.

Thanks in advance
wado1.jpg

Adrian Schiopu

unread,
Nov 10, 2019, 12:57:54 PM11/10/19
to dcm...@googlegroups.com
Updated:

and I genearated a Basic authorization and I entered in HTTP headers ...
Doesn't work...
autorizationbasic1.jpg
wado2.jpg

Adrian Schiopu

unread,
Nov 10, 2019, 1:09:15 PM11/10/19
to dcm4che
Updated:

IT WORK !!!

and the correct syntax is presented in attached file
wado3.jpg

Nicolas Roduit

unread,
Nov 12, 2019, 2:12:04 AM11/12/19
to dcm4che
FYI, it is possible to have a more straightforward integration without weasis-pacs-connector. see:
Reply all
Reply to author
Forward
0 new messages