15 #include "../OSSupport/IsThread.h"
44 void Authenticate(
int a_ClientID, std::string_view a_Username, std::string_view a_ServerHash);
61 cUser(
int a_ClientID,
const std::string_view a_Name,
const std::string_view a_ServerID) :
88 virtual void Execute(
void)
override;
cIsThread(AString &&a_ThreadName)
void Start(void)
Starts the thread; returns without waiting for the actual start.
bool m_ShouldAuthenticate
AString m_PropertiesAddress
void ReadSettings(cSettingsRepositoryInterface &a_Settings)
(Re-)read server and address from INI:
void Stop(void)
Stops the authenticator thread.
AString m_Server
The server that is to be contacted for auth / UUID conversions.
virtual ~cAuthenticator() override
virtual void Execute(void) override
cIsThread override:
AString m_Address
The URL to use for auth, without server part.
bool AuthWithYggdrasil(AString &a_UserName, const AString &a_ServerId, cUUID &a_UUID, Json::Value &a_Properties) const
Returns true if the user authenticated okay, false on error Returns the case-corrected username,...
void Authenticate(int a_ClientID, std::string_view a_Username, std::string_view a_ServerHash)
Queues a request for authenticating a user.
std::deque< cUser > cUserList
cUser(int a_ClientID, const std::string_view a_Name, const std::string_view a_ServerID)