summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Authenticator.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-28 12:37:48 +0200
committermadmaxoft <github@xoft.cz>2014-07-28 12:37:48 +0200
commitf5f9656917c0cb0cc68aee50178aafd3f24c417f (patch)
tree3452503c3a933566b929ac962e30b605ff957f6a /src/Protocol/Authenticator.h
parentUpdated NetherForts' weights. (diff)
downloadcuberite-f5f9656917c0cb0cc68aee50178aafd3f24c417f.tar
cuberite-f5f9656917c0cb0cc68aee50178aafd3f24c417f.tar.gz
cuberite-f5f9656917c0cb0cc68aee50178aafd3f24c417f.tar.bz2
cuberite-f5f9656917c0cb0cc68aee50178aafd3f24c417f.tar.lz
cuberite-f5f9656917c0cb0cc68aee50178aafd3f24c417f.tar.xz
cuberite-f5f9656917c0cb0cc68aee50178aafd3f24c417f.tar.zst
cuberite-f5f9656917c0cb0cc68aee50178aafd3f24c417f.zip
Diffstat (limited to '')
-rw-r--r--src/Protocol/Authenticator.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Protocol/Authenticator.h b/src/Protocol/Authenticator.h
index 244d94c0b..82ecb1f7a 100644
--- a/src/Protocol/Authenticator.h
+++ b/src/Protocol/Authenticator.h
@@ -52,6 +52,12 @@ public:
/** Stops the authenticator thread. The thread may be started and stopped repeatedly */
void Stop(void);
+
+ /** Converts the player names into UUIDs.
+ a_PlayerName[idx] will be converted to UUID and returned as idx-th value
+ The UUID will be empty on error.
+ Blocking operation, do not use in world-tick thread! */
+ AStringVector GetUUIDsFromPlayerNames(const AStringVector & a_PlayerName);
private:
@@ -76,8 +82,22 @@ private:
cUserList m_Queue;
cEvent m_QueueNonempty;
+ /** The server that is to be contacted for auth / UUID conversions */
AString m_Server;
+
+ /** The URL to use for auth, without server part.
+ %USERNAME% will be replaced with actual user name.
+ %SERVERID% will be replaced with server's ID.
+ For example "/session/minecraft/hasJoined?username=%USERNAME%&serverId=%SERVERID%". */
AString m_Address;
+
+ /** The server to connect to when converting player names to UUIDs. For example "api.mojang.com". */
+ AString m_NameToUUIDServer;
+
+ /** The URL to use for converting player names to UUIDs, without server part.
+ For example "/profiles/page/1". */
+ AString m_NameToUUIDAddress;
+
AString m_PropertiesAddress;
bool m_ShouldAuthenticate;