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

[OAuth] Access token expiration convenience functionality

    XMLWordPrintable

Details

    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

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

          Activity

            People

              magdalenas Magdalena Stojek
              vuokko Juha Vuolle
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes