2021-07-27 01:14:11 +05:30
|
|
|
#include "MSAInteractive.h"
|
|
|
|
|
2021-11-20 20:52:22 +05:30
|
|
|
MSAInteractive::MSAInteractive(
|
|
|
|
AccountData* data,
|
|
|
|
QObject* parent
|
|
|
|
) : AuthContext(data, parent) {}
|
2021-07-27 01:14:11 +05:30
|
|
|
|
|
|
|
void MSAInteractive::executeTask() {
|
|
|
|
m_requestsDone = 0;
|
|
|
|
m_xboxProfileSucceeded = false;
|
|
|
|
m_mcAuthSucceeded = false;
|
|
|
|
|
|
|
|
initMSA();
|
|
|
|
|
|
|
|
QVariantMap extraOpts;
|
|
|
|
extraOpts["prompt"] = "select_account";
|
|
|
|
m_oauth2->setExtraRequestParams(extraOpts);
|
|
|
|
|
|
|
|
beginActivity(Katabasis::Activity::LoggingIn);
|
|
|
|
m_oauth2->unlink();
|
|
|
|
*m_data = AccountData();
|
|
|
|
m_oauth2->link();
|
|
|
|
}
|