Redirect box login via SSL appengine page.

Apparently that's more secure than just redirecting to localhost :-S
Fixes issue #3936

(cherry picked from commit a872fa3828)
This commit is contained in:
John Maguire 2013-11-01 12:14:21 +01:00
parent d8e01157b0
commit d426da99b0
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ void BoxService::EnsureConnected() {
void BoxService::Connect() {
OAuthenticator* oauth = new OAuthenticator(
kClientId, kClientSecret, OAuthenticator::RedirectStyle::LOCALHOST, this);
kClientId, kClientSecret, OAuthenticator::RedirectStyle::REMOTE, this);
if (!refresh_token().isEmpty()) {
oauth->RefreshAuthorisation(
kOAuthTokenEndpoint, refresh_token());

View File

@ -36,7 +36,7 @@ void OAuthenticator::StartAuthorisation(
if (redirect_style_ == RedirectStyle::REMOTE) {
const int port = server->url().port();
redirect_url = QUrl(
QString("http://data.clementine-player.org/skydrive?port=%1").arg(port));
QString("https://clementine-data.appspot.com/skydrive?port=%1").arg(port));
} else {
redirect_url = server->url();
}