view Sphinx/source/plugins/python/authorization-1.py @ 1119:6cc874fba817

extended find + changes
author Alain Mazy <am@orthanc.team>
date Thu, 12 Dec 2024 10:50:18 +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)