MCPcopy Create free account
hub / github.com/bugy/script-server / identify_user

Function identify_user

src/web/web_utils.py:15–21  ·  view source on GitHub ↗
(request_handler)

Source from the content-addressed store, hash-verified

13
14
15def identify_user(request_handler):
16 user_id = request_handler.application.identification.identify(request_handler)
17
18 if user_id is None:
19 raise Exception('Could not identify user: ' + audit_utils.get_all_audit_names(request_handler))
20
21 return user_id
22
23
24def inject_user(func):

Callers 8

wrapperFunction · 0.90
wrapperFunction · 0.90
has_admin_rightsFunction · 0.90
openMethod · 0.90
getMethod · 0.90
get_userFunction · 0.85

Calls 2

get_all_audit_namesMethod · 0.80
identifyMethod · 0.45

Tested by

no test coverage detected