Using Google OAuth Tokens to Authenticate with Orthanc in OHIF Viewer

Hello,

I’m working on integrating the OHIF viewer with multiple Orthanc servers, but I don’t like how users need to authenticate in the OHIF viewer by introducing the username and password of the orthanc server every time they enter the application.

Here’s my scenario:

  1. I have Google Ouath for user authentication in my application and I want to use the OAuth Token to authenticate with my Orthanc servers.
  2. Currently, the OHIF viewer prompts users with an alert to input a username and password for the data source, which I’d like to avoid.

My doubts are:

  • Is there a way to configure Orthanc to accept the token I generate for authentication? If so, what would be the best approach to follow?
  • If direct token-based authentication isn’t feasible, what are the alternatives to bypass the user/password alert while maintaining secure access to the data sources?

Thanks in advance.

You can take a look at our docs for auth

Usually you should put the auth a layer above, and that is what we have done in our recipes here