Details
-
Task
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
None
-
-
8
-
Foundation PM Staging
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] Add an option or documentation to use "localhost" literal instead of IP literal in redirect_uri
- Reported
- is cloned by
-
QTBUG-124333 [OAuth] Open and close the loopback HTTP server on a need-basis
- Reported