OHIF connect Google Cloud Healthcare using API keys OR Service Account rather than OAuth

Describe Your Question

  • A clear and concise description of what problem you are having.
  • Which OHIF version you are using?
    I am using 3.8.0-beta.94(Latest) version. By following this Google Cloud Healthcare | OHIF I have managed to connect OHIF viewer to my Dataset and dicomStores on Google Cloud Healthcare using OAuth2.0.
    When I run the application it redirects to the Google authentication page for authentication.

I don’t want that I want to application to be authenticated using API keys or the Service directory method, the user is not required to go Google login page my React app has a login page, and the user is already authenticated.
Options

I don’t want to user to log in, I already have a react site login so the user is already authenticated.
I have created a point where I generated json token using node js Authenticate to the Cloud Healthcare API  |  Google Cloud
but how to call and where to pass it so it directly authenticate user, user don’t get redirect to google login page.

I think i answered you on github, but you can create a service account but that means you need a server to proxy and keep the account secrect safe

I was wondering if you managed to figure this out as I am attempting to do the same thing. If you did I’d really appreciate any hints or resource links you could reply with.

I don’t have a specific recipe to share, but you’ll need a server, let’s say an Express server. Then, you need to register the healthcare API as a service account and obtain the key. After that, OHIF, instead of directly calling the Google API, calls your server, which proxies the call to Google since it already has the key. I hope this explanation helps.