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

Method __init__

src/auth/identification.py:42–44  ·  view source on GitHub ↗
(self, ip_validator: TrustedIpValidator, user_header_name)

Source from the content-addressed store, hash-verified

40 EMPTY_TOKEN = (None, None)
41
42 def __init__(self, ip_validator: TrustedIpValidator, user_header_name) -> None:
43 self._ip_validator = ip_validator
44 self._user_header_name = user_header_name
45
46 def identify(self, request_handler):
47 remote_ip = request_handler.request.remote_ip

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected