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

20
api/logic/AuthServer.h Normal file
View File

@@ -0,0 +1,20 @@
#pragma once
#include <QString>
#include <QTcpServer>
#include "settings/SettingsObject.h"
#include "multimc_logic_export.h"
class MULTIMC_LOGIC_EXPORT AuthServer: public QObject
{
public:
explicit AuthServer(QObject *parent = 0);
quint16 port();
private:
void newConnection();
private:
std::shared_ptr<QTcpServer> m_tcpServer;
};