summaryrefslogtreecommitdiffstats
path: root/src/oauth/qoauth2authorizationcodeflow.cpp
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@qt.io>2024-11-14 12:55:56 +0200
committerJuha Vuolle <juha.vuolle@qt.io>2024-11-21 12:17:31 +0200
commitfb2ee9e7d6e5a849b8d9df60fcd111a29c55bda9 (patch)
tree399d72d93a8b70fc99ea88b19645534d1bc0e50f /src/oauth/qoauth2authorizationcodeflow.cpp
parent97b0865a0565bd7ff6bfde055510d5e899de6d46 (diff)
Remove ID token from extra tokens
Extra tokens only contains token that aren't handled. Amends: 4209cedd6ce5ef2f6ab595b2207713d8bff2bed6 Change-Id: I9fc560c42c56e01be51fae77ff3b6fe423333817 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/oauth/qoauth2authorizationcodeflow.cpp')
-rw-r--r--src/oauth/qoauth2authorizationcodeflow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/oauth/qoauth2authorizationcodeflow.cpp b/src/oauth/qoauth2authorizationcodeflow.cpp
index fdb476a..7109361 100644
--- a/src/oauth/qoauth2authorizationcodeflow.cpp
+++ b/src/oauth/qoauth2authorizationcodeflow.cpp
@@ -211,6 +211,7 @@ void QOAuth2AuthorizationCodeFlowPrivate::_q_accessTokenRequestFinished(const QV
copy.remove(Key::refreshToken);
copy.remove(Key::scope);
copy.remove(Key::tokenType);
+ copy.remove(Key::idToken);
QVariantMap newExtraTokens = extraTokens;
newExtraTokens.insert(copy);
setExtraTokens(newExtraTokens);