Files
UltimMC_Launcher/api/logic/AuthServer.h
Max 6df1be94dd 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
2021-06-10 17:00:54 +03:00

21 lines
346 B
C++

#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;
};