Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-65514

QOAuth2AuthorizationCodeFlow::refreshAccessToken() does not connect all replyHandler signals

    XMLWordPrintable

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. 

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jefernan Jesus Fernandez
            torlenor HP S
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes