# Osimis viewer authentication

**URL:** https://discourse.orthanc-server.org/t/osimis-viewer-authentication/2364
**Category:** Google Groups archive
**Created:** [March 21, 2021, 6:23pm UTC](https://discourse.orthanc-server.org/t/osimis-viewer-authentication/2364 "2021-03-21T18:23:32Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Carlos\_Nunez](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/c/ea666f/32.png) [@Carlos\_Nunez](https://discourse.orthanc-server.org/u/Carlos_Nunez)
#### Post date: [March 21, 2021, 6:23pm UTC](https://discourse.orthanc-server.org/t/osimis-viewer-authentication/2364/1 "2021-03-21T18:23:32Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Alain\_Mazy3](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/a/eb9ed0/32.png) [@Alain\_Mazy3](https://discourse.orthanc-server.org/u/Alain_Mazy3)
#### Post date: [March 23, 2021, 8:03am UTC](https://discourse.orthanc-server.org/t/osimis-viewer-authentication/2364/2 "2021-03-23T08:03:24Z")

</div>

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

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

---

<div class="post-metadata">

### Author: ![diegovictorbr](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/diegovictorbr/32/1586_2.png) [@diegovictorbr](https://discourse.orthanc-server.org/u/diegovictorbr)
#### Post date: [April 26, 2021, 3:04pm UTC](https://discourse.orthanc-server.org/t/osimis-viewer-authentication/2364/3 "2021-04-26T15:04:42Z")

</div>

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](https://www.osimis.io/images/wvp%20release%20notes.txt) 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?

---

<div class="post-metadata">

### Author: ![jodogne](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/jodogne/32/1511_2.png) [@jodogne](https://discourse.orthanc-server.org/u/jodogne)
#### Post date: [April 26, 2021, 3:48pm UTC](https://discourse.orthanc-server.org/t/osimis-viewer-authentication/2364/4 "2021-04-26T15:48:27Z")

</div>

The Osimis Web viewer is not maintained anymore:  
[https://www.orthanc-server.com/static.php?page=osimis-web-viewer](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/](https://bitbucket.org/osimis/osimis-webviewer-plugin/src/master/)
