x2gobroker.authmechs.testsuite_authmech module¶
- class x2gobroker.authmechs.testsuite_authmech.X2GoBrokerAuthMech[source]¶
Bases:
objectUnit testing authentication mechanism class. Used internally for running unit tests of the
x2gobrokermodule’s code base.Don’t use this!!!
- authenticate(username, password, **kwargs)[source]¶
Test function, faking sucessful authentication for user
testwith passwordsweetand userjacqueswith accentuated characters in the passwordthé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