diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2019-12-12 17:04:35 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2019-12-16 21:55:40 +0300 |
commit | a94804c75d1751b8ac0447a805c877b4a51b4c51 (patch) | |
tree | ddb988d86ccf7d43ef03059075f4d3d168c4ed77 /test | |
parent | db9d56a92c65af1776d0103137ca6f8a71fe4510 (diff) |
[OAuth] Add state parameter to negotiation
Diffstat (limited to 'test')
-rw-r--r-- | test/testoauth.cpp | 2 |
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)); } |