Authorization Plugin set WebService via ENV variable

Hi There

Is there a way to set the WebService end-point setting for the Authorization Plugin using an ENV variable? Can’t seem to find it in the Orthanc Reference:

https://osimis.atlassian.net/wiki/spaces/OKB/pages/26738689/How+to+use+osimis+orthanc+Docker+images#Howtouseosimis/orthancDockerimages?-Authorization

Hi,

I didn’t find a way to do it either. But one way to do it with docker is to create your own authz.sh script (you can take inspiration from other scripts in /usr/lib/orthanc/setup.d/) and override the existing script with docker volumes :

volumes:

  • ./my_authz.sh:/usr/lib/orthanc/setup.d/authz.sh

Hi Maxime,

Could you share your authz.sh script so we can integrate it in the future images ?

Thx

Hi Alain,

Here’s my script : https://gist.github.com/maximegaillard/e745e10f372eb40039de06e823035c01

It’s a WIP, I don’t handle all vars from the plugin, but it’s easy to custom it with desired variables (ie https://bitbucket.org/osimis/orthanc-setup-samples/src/45bbe8fc92a860c585ed1bdec16155277f02335c/docker/authorization-plugin/orthanc/orthanc.json?at=master&fileviewer=file-view-default)

Regards,