summaryrefslogtreecommitdiffstats
path: root/src/oauth/qoauth2authorizationcodeflow.cpp
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@qt.io>2025-01-20 09:39:19 +0200
committerJuha Vuolle <juha.vuolle@qt.io>2025-01-23 20:18:23 +0200
commit53e23bd5a4c8c2e4a03912c74eff8ba33d73c454 (patch)
tree26c5fdd80a2a4ff2e4812973c6e7f4bd413936c2 /src/oauth/qoauth2authorizationcodeflow.cpp
parente4504ac98b00610159397647e88e420641b02b36 (diff)
Rename 'requestedScope' and 'grantedScope' to '*ScopeTokens'
This commit is a prequel commit for changing their type from QStringList to QSet<QByteArray>, each member of the set representing a scope token. Resulted from API-review. Amends: 571b71763c0485778623139359acc88985099efb Task-number: QTBUG-132710 Pick-to: 6.9 Change-Id: I9d97ddfb66caba13434a460e021356911ed72f6c Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/oauth/qoauth2authorizationcodeflow.cpp')
-rw-r--r--src/oauth/qoauth2authorizationcodeflow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/oauth/qoauth2authorizationcodeflow.cpp b/src/oauth/qoauth2authorizationcodeflow.cpp
index fefb459..3cf61ed 100644
--- a/src/oauth/qoauth2authorizationcodeflow.cpp
+++ b/src/oauth/qoauth2authorizationcodeflow.cpp
@@ -456,8 +456,8 @@ QUrl QOAuth2AuthorizationCodeFlow::buildAuthenticateUrl(const QMultiMap<QString,
p.insert(QtOAuth2RfcKeywords::responseType, responseType());
p.insert(QtOAuth2RfcKeywords::clientIdentifier, d->clientIdentifier);
p.insert(QtOAuth2RfcKeywords::redirectUri, callback());
- if (!d->requestedScope.isEmpty())
- p.insert(QtOAuth2RfcKeywords::scope, d->requestedScope.join(" "_L1));
+ if (!d->requestedScopeTokens.isEmpty())
+ p.insert(QtOAuth2RfcKeywords::scope, d->requestedScopeTokens.join(" "_L1));
p.insert(QtOAuth2RfcKeywords::state, toUrlFormEncoding(state));
if (d->pkceMethod != PkceMethod::None) {
p.insert(QtOAuth2RfcKeywords::codeChallenge, d->createPKCEChallenge());