1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-21 15:34:16 +01:00

Redirect box login via SSL appengine page.

Apparently that's more secure than just redirecting to localhost :-S
Fixes issue 
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() { void BoxService::Connect() {
OAuthenticator* oauth = new OAuthenticator( OAuthenticator* oauth = new OAuthenticator(
kClientId, kClientSecret, OAuthenticator::RedirectStyle::LOCALHOST, this); kClientId, kClientSecret, OAuthenticator::RedirectStyle::REMOTE, this);
if (!refresh_token().isEmpty()) { if (!refresh_token().isEmpty()) {
oauth->RefreshAuthorisation( oauth->RefreshAuthorisation(
kOAuthTokenEndpoint, refresh_token()); kOAuthTokenEndpoint, refresh_token());

View File

@ -36,7 +36,7 @@ void OAuthenticator::StartAuthorisation(
if (redirect_style_ == RedirectStyle::REMOTE) { if (redirect_style_ == RedirectStyle::REMOTE) {
const int port = server->url().port(); const int port = server->url().port();
redirect_url = QUrl( 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 { } else {
redirect_url = server->url(); redirect_url = server->url();
} }