debug oauth

This commit is contained in:
Martin Rotter 2021-02-23 07:15:03 +01:00
parent 73809413ff
commit 5b81188cf3
3 changed files with 5 additions and 1 deletions

View File

@ -295,6 +295,8 @@ void OAuth2Service::logout(bool stop_redirection_handler) {
setAccessToken(QString());
setRefreshToken(QString());
qDebugNN << LOGSEC_OAUTH << "Clearing tokens.";
if (stop_redirection_handler) {
m_redirectionHandler->stop();
}

View File

@ -342,4 +342,6 @@ void OAuthHttpHandler::stop() {
m_listenAddress = QHostAddress();
m_listenPort = 0;
m_listenAddressPort = QString();
qDebugNN << LOGSEC_OAUTH << "Stopped redirection handler.";
}

View File

@ -29,7 +29,7 @@ void FormEditInoreaderAccount::apply() {
account<InoreaderServiceRoot>()->network()->oauth()->setRefreshToken(m_details->m_oauth->refreshToken());
account<InoreaderServiceRoot>()->network()->oauth()->setAccessToken(m_details->m_oauth->accessToken());
account<InoreaderServiceRoot>()->network()->oauth()->setTokensExpireIn(m_details->m_oauth->tokensExpireIn());
m_details->m_oauth->logout();
m_details->m_oauth->logout(true);
m_details->m_oauth->deleteLater();
}