Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.10.0
-
None
-
Linux - Ubuntu 14.04 Qt 5.10
Windows 10 Qt 5.10
Description
QOAuth2AuthorizationCodeFlow::refreshAccessToken() does not connect all signals for the replyHandler to enable the refresh of an access token.
From studying the code it seems that at least &QAbstractOAuthReplyHandler::tokensReceived must also be connected in that function in the same way is it is done during a regular access token request in QOAuth2AuthorizationCodeFlow::requestAccessToken(const QString &code).
In the current state the only workaround I found was to create a derived class from QOAuth2AuthorizationCodeFlow and call requestAccessToken(const QString &code) once in the beginning to connect all the signals (they are connecting to private class slots).
Without this I couldn't find a way to refresh a token without performing a fresh authorization first.