MCPcopy Create free account
hub / github.com/microsoft/debugpy / authenticate

Method authenticate

src/debugpy/adapter/servers.py:168–176  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

166 return "Server" + ("[?]" if self.pid is None else f"[pid={self.pid}]")
167
168 def authenticate(self):
169 if access_token is None and adapter.access_token is None:
170 return
171 auth = self.channel.request(
172 "pydevdAuthorize", {"debugServerAccessToken": access_token}
173 )
174 if auth["clientAccessToken"] != adapter.access_token:
175 self.channel.close()
176 raise RuntimeError('Mismatched "clientAccessToken"; server not authorized.')
177
178 def request(self, request):
179 raise request.isnt_valid(

Callers 2

__init__Method · 0.95
initializeMethod · 0.80

Calls 2

requestMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected