summaryrefslogtreecommitdiffstats
path: root/src/oauth/qabstractoauth.h
diff options
context:
space:
mode:
authorJesus Fernandez <jesus.fernandez@qt.io>2017-05-15 16:02:28 +0200
committerJesus Fernandez <Jesus.Fernandez@qt.io>2017-08-11 10:08:33 +0000
commit3d93f6436596e349e43c3798b675af66db71df8a (patch)
treedd1272a5238a9aac1b724c35ed93b63749a23ecd /src/oauth/qabstractoauth.h
parent61a1f8ee91a33734f12c14b25ceaff3ae05174e3 (diff)
Allow sending custom parameters in a token refresh
Add a new Stage to pass to the parameter modification call-back so that the client code can recognize and adapt when preparing to refresh an access token. [ChangeLog][QAbstractAuth] Adds a token refresh stage allowing parameters modification. Task-number: QTBUG-59104 Change-Id: If6cd1349df163edd27ee083e82e6f537422574ca Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/oauth/qabstractoauth.h')
-rw-r--r--src/oauth/qabstractoauth.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/oauth/qabstractoauth.h b/src/oauth/qabstractoauth.h
index a469e3b..c574875 100644
--- a/src/oauth/qabstractoauth.h
+++ b/src/oauth/qabstractoauth.h
@@ -80,7 +80,8 @@ public:
enum class Stage {
RequestingTemporaryCredentials,
RequestingAuthorization,
- RequestingAccessToken
+ RequestingAccessToken,
+ RefreshingAccessToken
};
enum class Error {