Osimis viewer authentication

Dear team, how can i open the osimis viewer programatically adding the user/password when the server requires authentication?
This to avoid to enter the username/password manually.

Thanks in advance.

Well, it’s just basic HTTP auth so you can pass the login/pwd in the url: http://username:password@example.com/

Usually, at this time, you realize that you just don’t need authentication if you try to bypass it :slight_smile:

Actually we can’t rely on passing basic auth in the URL as most modern browsers will block it.

In version 1.3.0.0 Osimis had a change regarding this question:
Query arguments (i.e ?token=1234) are passed as HTTP Headers of every request that is sent to Orthanc easing the integration with the orthanc-authorization plugin

But Osimis 1.4.2 doesn’t pass an authorization url parameter as a header to Orthanc. Is there a way to add custom headers to Osimis requests?

The Osimis Web viewer is not maintained anymore:
https://www.orthanc-server.com/static.php?page=osimis-web-viewer

But its source code is available as open-source software licensed under the AGPL license, so feel free to adapt the code to your needs and publicly share your modifications:
https://bitbucket.org/osimis/osimis-webviewer-plugin/src/master/