Mercurial > hg > orthanc-book
view Sphinx/source/plugins/python/authorization-1.py @ 815:a56c4128c9a2
ReceivedInstanceCallback in Python: added origin
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 23 Feb 2022 09:26:51 +0100 |
parents | ba2403ebd4b7 |
children |
line wrap: on
line source
import orthanc import pprint def Filter(uri, **request): print('User trying to access URI: %s' % uri) pprint.pprint(request) return True # False to forbid access orthanc.RegisterIncomingHttpRequestFilter(Filter)