Authlib injector, local auth server and ely by accounts support (#31)

* Add injector

* Add uuid generation for profile

* Add auth server emulator

* Start auth server on random port and bypass it to injector

* Run injector only when account type is dummy

* Clean authlib injector

* Add ely by authentication

* Remove old comments

* Add response status text to auth server

* Fix json value access

as done by @maximmasterr
This commit is contained in:
Max
2021-06-10 17:00:54 +03:00
committed by GitHub
parent 4db5965f89
commit 6df1be94dd
21 changed files with 424 additions and 33 deletions

View File

@@ -4,6 +4,7 @@
#include <tools/BaseProfiler.h>
#include "minecraft/launch/MinecraftServerTarget.h"
#include "AuthServer.h"
class InstanceWindow;
class LaunchController: public Task
@@ -39,6 +40,10 @@ public:
{
m_serverToJoin = std::move(serverToJoin);
}
void setAuthserver(std::shared_ptr<AuthServer> authserver)
{
m_authserver = authserver;
}
QString id()
{
return m_instance->id();
@@ -65,4 +70,5 @@ private:
AuthSessionPtr m_session;
shared_qobject_ptr<LaunchTask> m_launcher;
MinecraftServerTargetPtr m_serverToJoin;
std::shared_ptr<AuthServer> m_authserver;
};