From 27c1a37173a76e04341b87abe2ada8438d6ee59f Mon Sep 17 00:00:00 2001 From: John Maguire Date: Thu, 26 Mar 2015 18:27:27 +0100 Subject: [PATCH] Revert unneeded OAuthenticator change. --- src/internet/core/oauthenticator.cpp | 6 ------ src/internet/core/oauthenticator.h | 4 +--- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/internet/core/oauthenticator.cpp b/src/internet/core/oauthenticator.cpp index 7ad11b405..8996da5f4 100644 --- a/src/internet/core/oauthenticator.cpp +++ b/src/internet/core/oauthenticator.cpp @@ -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); diff --git a/src/internet/core/oauthenticator.h b/src/internet/core/oauthenticator.h index 8b2d5b985..944838a14 100644 --- a/src/internet/core/oauthenticator.h +++ b/src/internet/core/oauthenticator.h @@ -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,