1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-18 12:28:31 +01:00

Redirect box login via SSL appengine page.

Apparently that's more secure than just redirecting to localhost :-S
Fixes issue #3936
This commit is contained in:
John Maguire 2013-11-01 12:14:21 +01:00
parent 7470f67acf
commit a872fa3828
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();
}