summaryrefslogtreecommitdiffstats
path: root/src/oauth/qoauth2authorizationcodeflow.cpp
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@qt.io>2024-11-11 14:35:42 +0200
committerJuha Vuolle <juha.vuolle@qt.io>2024-11-21 12:17:56 +0200
commit14c638a86f95144ff114c4ffecede9d87af0d777 (patch)
treebb109faee902459ea884e69743ee609c53145fc1 /src/oauth/qoauth2authorizationcodeflow.cpp
parent164e2d897fb7c3a60b518985774a4faa360ba2c9 (diff)
Rename tokenRequestModifier to networkRequestModifier
Recently added ability to modify token requests is also applicable to the new 'device flow' class's authorization requests *), so not just about token requests. Hence abstract the name to concern network requests. This should also be more future proof in case adding new flows in the future. *) The pre-existing QOAuth2AuthorizationCodeFlow class does the authorization with browser/user-agent interaction, whereas with device flow it's done with a HTTP POST request/response. Amends: 235f475c560224295facb5473034e6d4d0188c95 Change-Id: If4d470bc5660d8cc8ef51abe8533c02134e72305 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/oauth/qoauth2authorizationcodeflow.cpp')
-rw-r--r--src/oauth/qoauth2authorizationcodeflow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/oauth/qoauth2authorizationcodeflow.cpp b/src/oauth/qoauth2authorizationcodeflow.cpp
index 44e8252..7d3f035 100644
--- a/src/oauth/qoauth2authorizationcodeflow.cpp
+++ b/src/oauth/qoauth2authorizationcodeflow.cpp
@@ -487,7 +487,7 @@ void QOAuth2AuthorizationCodeFlow::requestAccessToken(const QString &code)
const QString data = query.toString(QUrl::FullyEncoded);
- d->callTokenRequestModifier(request, QAbstractOAuth::Stage::RequestingAccessToken);
+ d->callNetworkRequestModifier(request, QAbstractOAuth::Stage::RequestingAccessToken);
QNetworkReply *reply = d->networkAccessManager()->post(request, data.toUtf8());
d->currentReply = reply;