Details
-
Suggestion
-
Resolution: Done
-
P3: Somewhat important
-
5.9.1
-
None
-
d811ebc6c6e83b33d765664328da5c8c6f518f66
Description
Consider this scenario:
- Users logs in for the first time in my Qt app (OAuth 2.0 - QtNetworkAuth).
- I save refresh token AND access token to DB.
- Users restarts app and wants to continue, refresh token and access token are loaded from DB.
- 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
- is duplicated by
-
QTBUG-63625 allow two-phase grant in QOAuth2AuthorizationCodeFlow
- Closed
For Gerrit Dashboard: QTBUG-63357 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
206452,13 | Add public API for getting/setting OAuth 2.0 refresh tokens | 5.10 | qt/qtnetworkauth | Status: MERGED | +2 | 0 |