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:
parent
7470f67acf
commit
a872fa3828
@ -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());
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user