Coverage for /home/antoine/projects/xpra-git/dist/python3/lib64/python/xpra/server/auth/none_auth.py : 100%
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) 2014-2020 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.
6from xpra.server.auth.sys_auth_base import SysAuthenticator
7from xpra.platform.info import get_username
8from xpra.util import typedict
11class Authenticator(SysAuthenticator):
13 def __init__(self, username, **kwargs):
14 super().__init__(username or get_username(), **kwargs)
15 self.salt = None
17 def requires_challenge(self) -> bool:
18 return False
20 def get_challenge(self, _digests):
21 return None
23 def get_password(self):
24 return None
26 def authenticate(self, caps : typedict) -> bool:
27 return True
29 def __repr__(self):
30 return "none"