Hide keyboard shortcuts

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. 

5 

6from xpra.server.auth.sys_auth_base import SysAuthenticator 

7from xpra.platform.info import get_username 

8from xpra.util import typedict 

9 

10 

11class Authenticator(SysAuthenticator): 

12 

13 def __init__(self, username, **kwargs): 

14 super().__init__(username or get_username(), **kwargs) 

15 self.salt = None 

16 

17 def requires_challenge(self) -> bool: 

18 return False 

19 

20 def get_challenge(self, _digests): 

21 return None 

22 

23 def get_password(self): 

24 return None 

25 

26 def authenticate(self, caps : typedict) -> bool: 

27 return True 

28 

29 def __repr__(self): 

30 return "none"