13 #ifndef WS_ABSTRACT_AUTH_H__
14 #define WS_ABSTRACT_AUTH_H__
37 virtual int authentify(
const std::string& uid,
const std::string& pass =
"",
const std::string& ip =
"") = 0;
42 virtual std::string
getUid() = 0;
virtual std::string getUid()=0
return the user's id
virtual std::string getFirstName()
return the user's name
virtual std::set< std::string > getAllGroups()
return all the possible groups
virtual std::string getEmail()
return the user's email
virtual std::set< std::string > getUserGroups()
return the groups of the user
virtual int authentify(const std::string &uid, const std::string &pass="", const std::string &ip="")=0
authentify user with uid.
virtual std::string getSurname()
return the user's surname
Abstract class for authentification.