13 #ifndef WS_AUTHENTICATOR_H__
14 #define WS_AUTHENTICATOR_H__
47 int authentify(
const std::string& uid,
const std::string& pass =
"",
const std::string& ip =
"");
std::string getUid()
return the user uid WsAuthenticator::authentify must be called before
std::string getSurname()
return the user surname WsAuthenticator::authentify must be called before
~WsAuthenticator()
Destructor.
std::string getEmail()
return the user email WsAuthenticator::authentify must be called before
Loads Authentification module and acts as an interface.
WsAuthenticator()
Constructor.
int loadModule()
loads the module and casts it as WsAbstractAuth object
std::set< std::string > getUserGroups()
return the user groups WsAuthenticator::authentify must be called before
std::set< std::string > getAllGroups()
return all the possible groups WsAuthenticator::authentify must be called before
Abstract class for authentification.
int authentify(const std::string &uid, const std::string &pass="", const std::string &ip="")
authentify the user.
std::string getFirstName()
return the user name WsAuthenticator::authentify must be called before