x2gobroker.authmechs.none_authmech module¶
- class x2gobroker.authmechs.none_authmech.X2GoBrokerAuthMech[source]¶
Bases: builtins.object
X2Go Session Broker’s none authentication mechanism:
Use this authentication mechanism for setups, where users are always granted access to the broker. No authentication is required.
WARNING: Only use this authentication mechanism on private or VPN’ed networks. Don’t use it, if your broker is reachable on the internet or in networks with non-trusted hosts.
NOTE: The broker will not be able to distinguish between users when delivering available servers and session profiles to the user’s X2Go Client application.
- authenticate(username, password, **kwargs)[source]¶
The none authentication mechanism’s authenticate() method always returns True to the user, so X2Go Session Broker access gets always granted.
Parameters: - username (str) – The broker username sent by the client (ignored)
- password (str) – The broker password sent by the client (ignored)
- kwargs (dict) – Any other parameter (for future features’ compatibility, all ignored for now)
Returns: Authentication success (always!)
Return type: bool