Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2019-12-12 17:04:35 +0300
committerHannah von Reth <vonreth@kde.org>2019-12-16 21:55:40 +0300
commita94804c75d1751b8ac0447a805c877b4a51b4c51 (patch)
treeddb988d86ccf7d43ef03059075f4d3d168c4ed77 /test
parentdb9d56a92c65af1776d0103137ca6f8a71fe4510 (diff)
[OAuth] Add state parameter to negotiation
Diffstat (limited to 'test')
-rw-r--r--test/testoauth.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testoauth.cpp b/test/testoauth.cpp
index e3a95009f..f04e9ad0b 100644
--- a/test/testoauth.cpp
+++ b/test/testoauth.cpp
@@ -159,7 +159,7 @@ public:
QCOMPARE(query.queryItemValue(QLatin1String("client_id")), Theme::instance()->oauthClientId());
QUrl redirectUri(query.queryItemValue(QLatin1String("redirect_uri")));
QCOMPARE(redirectUri.host(), QLatin1String("localhost"));
- redirectUri.setQuery("code=" + code);
+ redirectUri.setQuery(QStringLiteral("code=%1&state=%2").arg(code, query.queryItemValue(QStringLiteral("state"))));
createBrowserReply(QNetworkRequest(redirectUri));
}