Authentication: User information in IncomingHttpRequestFilter2 plugin?

Hi,
I am trying to set up user authentication for Orthanc Explorer / Explorer 2. This works in principle, but I can’t get any further with the OrthancPluginIncomingHttpRequestFilter2. In the Lua callback to filter incoming requests I can see the information which user has logged in, but how do I find this information in the IncomingHttpRequestFilter2 plugin?
I would like to use the plugin because it would give me better options compared to a Lua script, but the user information is crucial for this.
Thanks a lot for your help!
BR, Dominic

Hi,

If you are using basic auth, the user and its password are stored in the “Authorization” HTTP header (encoded in base 64) so you can extract the user name.

HTH,

Alain.

1 Like

Hi Alain,
Thank you very much for your answer! That helped me a lot!
It might be helpful for others if you could include this in the documentation (Orthanc Plugin SDK: Callbacks) in the future.
Thanks and best regards, Dominic

Will be done in the future release (commit).

1 Like