x2gobroker.authmechs.base_authmech module

class x2gobroker.authmechs.base_authmech.X2GoBrokerAuthMech[source]

Bases: object

Base authentication mechanism class. This class is not supposed to be used as an authentication mechanism in running setups. (It let’s authentication always fail).

It is rather so, that more specific authentication mechanisms should inherit from this class. All features common to more specific authentication mechanisms go in here.

authenticate(username, password, **kwargs)[source]

Dummy authenticate() method of X2GoBrokerAuthMech.

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 failure (always!)

Return type:

bool