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

Qt NetworkAuth fails to refresh auth with refresh token (using Google's OAuth2)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.15.1, 6.0.0 Alpha
    • Fix Version/s: 5.15.2, 6.0.0
    • Labels:
      None
    • Platform/s:
      All
    • Commits:
      a7d697498be7d19bd86d343474845febc9f46b68 (qt/qtnetworkauth/dev) c7dba0796324c9846ffb9dac470045da35520337 (qt/qtnetworkauth/5.15)

      Description

      After setting up things with Google's OAuth2 implementation I get a token and refresh token.

      Starting the app after setting the refresh token from the last run should allow to start a new session without going through the OAuth2 flow again.
      Instead I get:
      qt.networkauth.replyhandler: Error transferring https://oauth2.googleapis.com/token - server replied: Bad Request

      This is due to NetworkAuth not setting the client id and shared secret.

        Attachments

        For Gerrit Dashboard: QTBUG-87703
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            frederik Frederik Gladhorn
            Reporter:
            frederik Frederik Gladhorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes