mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-04-18 16:26:54 -04:00
33 lines
717 B
C++
33 lines
717 B
C++
#pragma once
|
|
#include <QObject>
|
|
|
|
#include "minecraft/auth/AuthStep.h"
|
|
#include "net/NetJob.h"
|
|
#include "net/Upload.h"
|
|
|
|
class XboxAuthorizationStep : public AuthStep {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit XboxAuthorizationStep(AccountData* data, Token* token, QString relyingParty, QString authorizationKind);
|
|
virtual ~XboxAuthorizationStep() noexcept = default;
|
|
|
|
void perform() override;
|
|
|
|
QString describe() override;
|
|
|
|
private:
|
|
bool processSTSError(const QByteArray& response);
|
|
|
|
private slots:
|
|
void onRequestDone(QByteArray* response);
|
|
|
|
private:
|
|
Token* m_token;
|
|
QString m_relyingParty;
|
|
QString m_authorizationKind;
|
|
|
|
Net::Upload::Ptr m_request;
|
|
NetJob::Ptr m_task;
|
|
};
|