Merge pull request #1480 from LennyMcLennington/oauth2-token-error-diagnostic
change: Added diagnostic logging for OAuth 2.0 token reply errors, an…
This commit is contained in:
commit
2bf9c0dcf4
@ -230,6 +230,15 @@ void DeviceFlow::onDeviceAuthReplyFinished()
|
||||
qWarning() << "DeviceFlow::onDeviceAuthReplyFinished: Mandatory parameters missing from response";
|
||||
updateActivity(Activity::FailedHard);
|
||||
}
|
||||
} else {
|
||||
qWarning() << "DeviceFlow::onDeviceAuthReplyFinished: Token reply error:" << tokenReply->errorString();
|
||||
|
||||
QVariantMap params = parseJsonResponse(tokenReply->readAll());
|
||||
foreach (QString key, params.keys()) {
|
||||
qDebug() << "\t" << key << ": " << params.value(key).toString();
|
||||
}
|
||||
|
||||
updateActivity(Activity::FailedHard);
|
||||
}
|
||||
tokenReply->deleteLater();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user