Installation of authorization plugin on a Windows 64bits version

137 views
Skip to first unread message

Pierre Guntzer

unread,
Apr 28, 2020, 1:21:00 PM4/28/20
to Orthanc Users
Hi,

I am unable to make the authorization plugin work.
My version of Orthanc is 20.4.1 for Windows 64 bits.

First in plugin section, I have the following:
 "Plugins" : [ "../Plugins/" ],

In Plugins directory the following plugins are installed (see attached file).

As per Orthanc book explanations, I have configured the following for authorization/authentication:

  "Authorization" : {
  },
  
  // Whether or not the password protection is enabled
  "AuthenticationEnabled" : true,

  // The list of the registered users. Because Orthanc uses HTTP
  // Basic Authentication, the passwords are stored as plain text.
  "RegisteredUsers" : {
    "pierre" : "xxxxxx"
  },

Of course I have an HTTP server running on port 37080 that serves the expected response.

When doing a WADO request, the HTTP response has 401 status:
HttpResponseProxy{HTTP/1.1 401 Unauthorized [Connection: close, WWW-Authenticate: Basic realm="Orthanc Secure Area", Content-Length: 0] [Content-Length: 0,Chunked: false]}

(Please note I don't get a 403 as expected)

I tried to track if Orthanc was calling the callback defined ("http://localhost:37080/rest/wadoServer/auth/") but it seems it does not happen.

My questions are:
- I don't see the libOrthancAuthorization plugin in the plugins folder, does that has any chance to work? Is that plugin available for Windows 64 bits?
- Can I mix Authentication and Authorization files in configuration file?
- Does Authorization plugin works for WADO requests? (Here is the request: http://localhost:8042/wado?objectUID=1.2.840.113663.1500.1.458621907.3.2.20190226.130051.951&requestType=WADO)
- Did I miss something in Authorization configuration?

Thank you very much for your help

Pierre
Orthanc plugins.png

Alain Mazy

unread,
May 4, 2020, 4:18:09 PM5/4/20
to Pierre Guntzer, Orthanc Users
Hi Pierre,

I've recently added the Authorization plugin in the Orthanc Windows Installers (20.5.0).  They were indeed missing.  Sorry for that.  The new installers are available on Osimis website: https://www.osimis.io/en/download.html

I'm not sure about the mix of basic auth + auth plugin together.  Orthanc might try to check both and it might be hard to imagine the output.  The auth-plugin should mainly be used if you have another app in front of Orthanc and that web-app includes some auth-header in the requests to Orthanc.

Best regards,

Alain.




--
You received this message because you are subscribed to the Google Groups "Orthanc Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orthanc-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/orthanc-users/d586175a-332b-4dc2-959f-87ee813b2a15%40googlegroups.com.


--

Alain Mazy / Orthanc-Studio Manager & Software Developer
a...@osimis.io / +32 494 31 67 27

Osimis

OSIMIS S.A. 
Quai Banning 6BE-4000 Liège 
www.osimis.io

Twitter LinkedIn


Pierre Guntzer

unread,
May 5, 2020, 3:38:36 PM5/5/20
to Orthanc Users
Dear Alain,

thank you so much! I confirm that it works!!!

In details, to share my experience:
- authorization request is triggered on wado requests
- it does NOT work with authentication enabled as you suspected

Thanks again for the prompt answer, much appreciated

Best regards

To unsubscribe from this group and stop receiving emails from it, send an email to orthan...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages