mirror of
https://github.com/UltimMC/Launcher.git
synced 2026-01-03 06:10:03 +00:00
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:
20
api/logic/AuthServer.h
Normal file
20
api/logic/AuthServer.h
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user