changeset 1295:e4ebcf577033 default tip

Python: implementing user authentication
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 21 Aug 2026 16:40:50 +0200
parents 4c666b4f5955
children
files Sphinx/source/plugins/python.rst
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Sphinx/source/plugins/python.rst	Wed Aug 19 09:01:06 2026 +0200
+++ b/Sphinx/source/plugins/python.rst	Fri Aug 21 16:40:50 2026 +0200
@@ -1048,6 +1048,23 @@
 opened at: ``http://localhost:5984/_utils/``
 
 
+.. _python_http_authentication:
+
+Implementing user authentication (new in 7.2)
+.............................................
+
+Release 7.2 of the Python plugin for Orthanc introduces support for
+HTTP authentication through the new function:
+``orthanc.RegisterHttpAuthenticationCallback()``.
+
+The source distribution of the Python plugin `contains a full sample
+<https://orthanc.uclouvain.be/hg/orthanc-python/file/default/Resources/Samples/SampleHttpAuthentication.py>`__
+illustrating how to use this function to implement basic cookie-based
+HTTP authentication. Note that a more realistic implementation would
+use `JWT-based authentication
+<https://en.wikipedia.org/wiki/JSON_Web_Token>`__.
+
+
 
 Performance and concurrency
 ---------------------------