| 34 | } |
| 35 | |
| 36 | void EntitlementsStep::onRequestDone( |
| 37 | QNetworkReply::NetworkError error, |
| 38 | QByteArray data, |
| 39 | QList<QNetworkReply::RawHeaderPair> headers |
| 40 | ) { |
| 41 | auto requestor = qobject_cast<AuthRequest *>(QObject::sender()); |
| 42 | requestor->deleteLater(); |
| 43 | |
| 44 | #ifndef NDEBUG |
| 45 | qDebug() << data; |
| 46 | #endif |
| 47 | |
| 48 | // TODO: check presence of same entitlementsRequestId? |
| 49 | // TODO: validate JWTs? |
| 50 | Parsers::parseMinecraftEntitlements(data, m_data->minecraftEntitlement); |
| 51 | |
| 52 | emit finished(AccountTaskState::STATE_WORKING, tr("Got entitlements")); |
| 53 | } |
nothing calls this directly
no test coverage detected