(self)
| 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( |
no test coverage detected