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

No way to set specific refresh token?

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.9.1
    • Fix Version/s: 5.10.0
    • Labels:
      None
    • Commits:
      d811ebc6c6e83b33d765664328da5c8c6f518f66

      Description

      Consider this scenario:

      1. Users logs in for the first time in my Qt app (OAuth 2.0 - QtNetworkAuth).
      2. I save refresh token AND access token to DB.
      3. Users restarts app and wants to continue, refresh token and access token are loaded from DB.
      4. I want to set these existing tokens to my QOAuth2AuthorizationCodeFlow instance. How??? I only found method to set access token, which is in fact useless without method to set refresh token too!

      On some online APIs, refresh token do not expire, ever. So when user of your app starts it on the other day, he does not have to grant OAuth permissions again, the stored refresh token is simply used to gain new access token (without user interaction of course), so that user does not have to grant permissions again.

      Add a way to set my specific refresh token, if there is not one. This is actually quite a blocker for all use cases where refresh token is not rotated by the API after its use.

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                skunkos Martin Rotter
                Reporter:
                skunkos Martin Rotter
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes