From 5b81188cf311912415dd2e2f862cf8b04c2ac8e2 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Tue, 23 Feb 2021 07:15:03 +0100 Subject: [PATCH] debug oauth --- src/librssguard/network-web/oauth2service.cpp | 2 ++ src/librssguard/network-web/oauthhttphandler.cpp | 2 ++ .../services/inoreader/gui/formeditinoreaderaccount.cpp | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/librssguard/network-web/oauth2service.cpp b/src/librssguard/network-web/oauth2service.cpp index 5c3374fa2..fe6c0892c 100644 --- a/src/librssguard/network-web/oauth2service.cpp +++ b/src/librssguard/network-web/oauth2service.cpp @@ -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(); } diff --git a/src/librssguard/network-web/oauthhttphandler.cpp b/src/librssguard/network-web/oauthhttphandler.cpp index d8b824092..15485e76a 100644 --- a/src/librssguard/network-web/oauthhttphandler.cpp +++ b/src/librssguard/network-web/oauthhttphandler.cpp @@ -342,4 +342,6 @@ void OAuthHttpHandler::stop() { m_listenAddress = QHostAddress(); m_listenPort = 0; m_listenAddressPort = QString(); + + qDebugNN << LOGSEC_OAUTH << "Stopped redirection handler."; } diff --git a/src/librssguard/services/inoreader/gui/formeditinoreaderaccount.cpp b/src/librssguard/services/inoreader/gui/formeditinoreaderaccount.cpp index 1f9a804ce..23f8db013 100644 --- a/src/librssguard/services/inoreader/gui/formeditinoreaderaccount.cpp +++ b/src/librssguard/services/inoreader/gui/formeditinoreaderaccount.cpp @@ -29,7 +29,7 @@ void FormEditInoreaderAccount::apply() { account()->network()->oauth()->setRefreshToken(m_details->m_oauth->refreshToken()); account()->network()->oauth()->setAccessToken(m_details->m_oauth->accessToken()); account()->network()->oauth()->setTokensExpireIn(m_details->m_oauth->tokensExpireIn()); - m_details->m_oauth->logout(); + m_details->m_oauth->logout(true); m_details->m_oauth->deleteLater(); }