Abstract Orthanc's authentication on the OHIF viewer

I want to implicitly set the Orthanc credentials on the OHIF viewer

  • I am using Orthanc as my DICOM server with AuthenticationEnabled set to true in the orthanc.json configuration file. Now, whenever I open OHIF I get a prompt that’s asking for username and password.
    How do I configure OHIF so that it sets the username and password when I open the viewer instead of it asking for the credentials explicitly?

  • I am running OHIF v3 and Orthanc(latest Osimis build) docker images and behind NginX using configuration from Osimis’ bitbucket repository.

Also, asking out of curiosity, can we selectively enable authentication?
I.e. enable authentication on the study list but disable it on the viewer.

Thank you for any assistance on this issue!

3 Likes

Looks like a pretty dead community here :thinking:

Currently, I’m trying the same with authentik as my auth provider. It’s almost pretty easy to set up, but I can’t get access to ohif & orthanc (docker install). Always, I was asked to login.

working with basic auth parameters

Maybe someone else has a clue, how to fix this issue with ohif & orthanc?!

I’m working on a recipe with docker, nginx, orthanc and oauth2proxy very soon

2 Likes

Sounds interesting. Especially using a Docker environment. I often struggle with projects that force me to install a lot of dependencies that I’ve never heard of and could break my system. Docker (Compose) should be the default installation method in my opinion; it simplifies a lot of settings.

Good news! We have some recipes for Docker available at Docker | OHIF. Additionally, our newest recipe for Nginx + Docker + Keycloak is nearing completion, and we will add it very soon. Stay tuned!

2 Likes

We recently added several recipes for implementing authentication with Keycloak in OHIF. You can find them here: