MCPcopy
hub / github.com/1Panel-dev/MaxKB / support

Method support

apps/common/auth/handle/impl/user_token.py:301–305  ·  view source on GitHub ↗
(self, request, token: str, get_token_details)

Source from the content-addressed store, hash-verified

299
300class UserToken(AuthBaseHandle):
301 def support(self, request, token: str, get_token_details):
302 auth_details = get_token_details()
303 if auth_details is None:
304 return False
305 return 'id' in auth_details and auth_details.get('type') == AuthenticationType.SYSTEM_USER.value
306
307 def handle(self, request, token: str, get_token_details):
308 version, get_key = Cache_Version.TOKEN.value

Callers 4

process_responseMethod · 0.45
authenticateMethod · 0.45
authenticateMethod · 0.45
authenticateMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected