Revert unneeded OAuthenticator change.

This commit is contained in:
John Maguire 2015-03-26 18:27:27 +01:00
parent 3594af5be1
commit 27c1a37173
2 changed files with 1 additions and 9 deletions

View File

@ -61,16 +61,10 @@ void OAuthenticator::StartAuthorisation(const QString& oauth_endpoint,
} else if (redirect_style_ == RedirectStyle::REMOTE_WITH_STATE) {
redirect_url = QUrl(kRemoteURL);
url.addQueryItem("state", port);
} else if (redirect_style_ == RedirectStyle::REMOTE_WITH_FRAGMENT) {
redirect_url = QUrl(kRemoteURL);
redirect_url.setUserName(port);
} else {
redirect_url = server->url();
}
qLog(Debug) << url
<< redirect_url;
url.addQueryItem("redirect_uri", redirect_url.toString());
url.addQueryItem("scope", scope);

View File

@ -43,9 +43,7 @@ class OAuthenticator : public QObject {
// 'state' parameter of the URL, for services which allow only redirect URL
// without parameters (e.g. SoundCloud). "state" parameter will be added to
// the redirect URL by the service itself.
REMOTE_WITH_STATE = 2,
REMOTE_WITH_FRAGMENT = 3,
REMOTE_WITH_STATE = 2
};
OAuthenticator(const QString& client_id, const QString& client_secret,