Coverage for /home/antoine/projects/xpra-git/dist/python3/lib64/python/xpra/client/auth/uri_handler.py : 75%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# This file is part of Xpra.
2# Copyright (C) 2019 Antoine Martin <antoine@xpra.org>
3# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
4# later version. See the file COPYING for details.
7class Handler:
9 def __init__(self, client, **_kwargs):
10 self.client = client
12 def __repr__(self):
13 return "uri"
15 def get_digest(self) -> str:
16 return None
18 def handle(self, packet) -> bool:
19 if not self.client.password:
20 return False
21 self.client.send_challenge_reply(packet, self.client.password)
22 return True