Authentication to orthanc resources

Hi everyone, I’m trying to create a graphical interface in java for the Orthanc server.

I currently have a version of orthanc configured with basic authentication and the ohif plugin for viewing exams.

With my application if I obviously try to access through an exam to view it with ohif it opens the page but I have to enter the credentials of the user registered in orthanc.

How can I access from my Java project, knowing the credentials of a basic user, to the orthanc resources?

I saw that orthanc has a plugin for advanced authentication but I don’t understand how it works.

How could I solve it?
Could I use a token that I store in my application and pass to orthanc so that it authenticates me?

Thanks.

Hello

You might be interested in this sample setup that demonstrates how to control access to Orthanc resources from a “sidecar” web service.

(And , more generally, this repo is a treasure trove of Orthanc setups that you might want to explore)

Hope this helps!