Details
-
Task
-
Resolution: Fixed
-
P2: Important
-
None
-
None
-
-
13
-
58c92af6e (dev)
-
Foundation Sprint 118, Foundation Sprint 119, Foundation Sprint 120
Description
Access tokens (which are acquired with OAuth) typically have an expiration time, after which they are no longer valid.
The QAbstractOAuth2 class provides expiration property, a QDateTime indicating the expiration time.
Once the token has expired, the user needs to either refresh it with refresh_token, or restart the authorization flow.
This leaves it up to every application to handle. QAbstractOAuth2 class could provide convenience for this:
- aboutToExpire() signal
- automatic refresh if refresh token is available
- setter for the refresh threshold (how long before expiration to refresh)
Attachments
Issue Links
- clones
-
QTBUG-124331 [OAuth] Document the use of "IP literal" instead of 'localhost' hostname in redirect_uri
- Reported
- is cloned by
-
QTBUG-124333 [OAuth] Ability to open and close the loopback HTTP server on a need-basis
- Closed
- relates to
-
QTBUG-104621 Provide autorefresh of OAuth tokens
- Closed