oauth: Fix redirect
Query params were not added to redirect url prior to inclusion in oauth request. This change fixes OneDrive authentication. Regression introduced in 8b226c2171
This commit is contained in:
parent
1a3828e2c1
commit
b40d9ed44b
@ -70,13 +70,14 @@ void OAuthenticator::StartAuthorisation(const QString& oauth_endpoint,
|
||||
redirect_url = server->url();
|
||||
}
|
||||
|
||||
redirect_url.setQuery(redirect_url_query);
|
||||
|
||||
url_query.addQueryItem("redirect_uri", redirect_url.toString());
|
||||
if (!scope.isEmpty()) { // Empty scope is valid for Dropbox.
|
||||
url_query.addQueryItem("scope", scope);
|
||||
}
|
||||
|
||||
url.setQuery(url_query);
|
||||
redirect_url.setQuery(redirect_url_query);
|
||||
|
||||
NewClosure(server, SIGNAL(Finished()), this, &OAuthenticator::RedirectArrived,
|
||||
server, redirect_url);
|
||||
|
Loading…
x
Reference in New Issue
Block a user