debug oauth
This commit is contained in:
parent
73809413ff
commit
5b81188cf3
3 changed files with 5 additions and 1 deletions
|
@ -295,6 +295,8 @@ void OAuth2Service::logout(bool stop_redirection_handler) {
|
||||||
setAccessToken(QString());
|
setAccessToken(QString());
|
||||||
setRefreshToken(QString());
|
setRefreshToken(QString());
|
||||||
|
|
||||||
|
qDebugNN << LOGSEC_OAUTH << "Clearing tokens.";
|
||||||
|
|
||||||
if (stop_redirection_handler) {
|
if (stop_redirection_handler) {
|
||||||
m_redirectionHandler->stop();
|
m_redirectionHandler->stop();
|
||||||
}
|
}
|
||||||
|
|
|
@ -342,4 +342,6 @@ void OAuthHttpHandler::stop() {
|
||||||
m_listenAddress = QHostAddress();
|
m_listenAddress = QHostAddress();
|
||||||
m_listenPort = 0;
|
m_listenPort = 0;
|
||||||
m_listenAddressPort = QString();
|
m_listenAddressPort = QString();
|
||||||
|
|
||||||
|
qDebugNN << LOGSEC_OAUTH << "Stopped redirection handler.";
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ void FormEditInoreaderAccount::apply() {
|
||||||
account<InoreaderServiceRoot>()->network()->oauth()->setRefreshToken(m_details->m_oauth->refreshToken());
|
account<InoreaderServiceRoot>()->network()->oauth()->setRefreshToken(m_details->m_oauth->refreshToken());
|
||||||
account<InoreaderServiceRoot>()->network()->oauth()->setAccessToken(m_details->m_oauth->accessToken());
|
account<InoreaderServiceRoot>()->network()->oauth()->setAccessToken(m_details->m_oauth->accessToken());
|
||||||
account<InoreaderServiceRoot>()->network()->oauth()->setTokensExpireIn(m_details->m_oauth->tokensExpireIn());
|
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();
|
m_details->m_oauth->deleteLater();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue