x2gobroker.authmechs.testsuite_authmech module¶
- class x2gobroker.authmechs.testsuite_authmech.X2GoBrokerAuthMech[source]¶
Bases: builtins.object
Unit testing authentication mechanism class. Used internally for running unit tests of the x2gobroker module’s code base.
Don’t use this!!!
- authenticate(username, password, **kwargs)[source]¶
Test function, faking sucessful authentication for user test with password sweet and user jacques with accentuated characters in the password thérèse.
Don’t use this!!!
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