diff options
author | Mårten Nordheim <marten.nordheim@qt.io> | 2017-04-18 12:58:35 +0200 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2018-07-10 14:56:49 +0000 |
commit | f23445845310b9f47ea5592f1dea92ca463ba284 (patch) | |
tree | 6c377e9d144e6a3dd9fb1a7a43213a0959df1663 /src/oauth/qoauth1_p.h | |
parent | 55b80f9e7b0a81cf6c80ae0a381a20641194c09e (diff) |
Fix for second temporary token being interpreted as success
The code now keeps track of whether or not the final tokens were
actually requested.
Before if we received temporary tokens a second time it would behave as
if the authorization succeeded and would simply fail any actual
authorizing and would stop attempts to authorize again. By keeping
track of whether or not an actual request was made we can now tell the
temporary and the final tokens apart.
Change-Id: I4a55e7beda9e7be9d8c693739f4d3985438837ea
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: Jesus Fernandez <Jesus.Fernandez@qt.io>
Diffstat (limited to 'src/oauth/qoauth1_p.h')
-rw-r--r-- | src/oauth/qoauth1_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/oauth/qoauth1_p.h b/src/oauth/qoauth1_p.h index ecc5cc4..ee57fba 100644 --- a/src/oauth/qoauth1_p.h +++ b/src/oauth/qoauth1_p.h @@ -93,6 +93,7 @@ public: QUrl tokenCredentialsUrl; QOAuth1::SignatureMethod signatureMethod = QOAuth1::SignatureMethod::Hmac_Sha1; const QString oauthVersion = QStringLiteral("1.0"); + bool tokenRequested = false; struct OAuth1KeyString { |