Advanced authorization plugin: send authenticated requests to the web service

Hi Orthanc users! :slight_smile:

I’d like to ask for your help on a situation with the Advanced authorization plugin.

On the Authentication tokens section, it’s clear that we can forward tokens to the web service so that we can validate if the user has access to the requested resource. I did test this and it works well.

But what if my web service requires basic authentication (or any other authentication method)? How can I make Orthanc send authenticated requests?

Thanks in advance.

Wait, I think the answer is in my own question, lol

I think I could set “TokenHttpHeaders”: [“Authorization”] and send the Bearer token in the header.

Would that work?

Yes, it would work. But then I have a conflict with the Remote Access settings. It’s forwarding the Basic token used for login in Orthanc :frowning:

Does anyone have any idea?