Fix Mojang auth failing due to Mojang rejecting requests to the profile endpoint

This commit is contained in:
TheCodex6824
2022-04-21 16:01:55 -04:00
parent 5adcc26190
commit 8bcbe07c87
7 changed files with 314 additions and 3 deletions

View File

@ -0,0 +1,22 @@
#pragma once
#include <QObject>
#include "QObjectPtr.h"
#include "minecraft/auth/AuthStep.h"
class MinecraftProfileStepMojang : public AuthStep {
Q_OBJECT
public:
explicit MinecraftProfileStepMojang(AccountData *data);
virtual ~MinecraftProfileStepMojang() noexcept;
void perform() override;
void rehydrate() override;
QString describe() override;
private slots:
void onRequestDone(QNetworkReply::NetworkError, QByteArray, QList<QNetworkReply::RawHeaderPair>);
};