# HG changeset patch
# User Alain Mazy <am@orthanc.team>
# Date 1745933096 -7200
# Node ID 7eaee38747ab0d0d9d31597ba34e1f025cfcbde0
# Parent  554b081d8df4d4c0b0bb1ca1db7d598d981fe417
doc Authorization header

diff -r 554b081d8df4 -r 7eaee38747ab OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h
--- a/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h	Thu Apr 10 12:14:17 2025 +0200
+++ b/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h	Tue Apr 29 15:24:56 2025 +0200
@@ -1509,6 +1509,10 @@
    * concurrently by different threads of the Web server of
    * Orthanc. You must implement proper locking if applicable.
    *
+   * Note that if you are using HTTP basic authentication, you can extract
+   * the username from the "Authorization" HTTP header.  The value of that header
+   * contains username:pwd encoded in base64.
+   *
    * @param method The HTTP method used by the request.
    * @param uri The URI of interest.
    * @param ip The IP address of the HTTP client.