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 #3936
This commit is contained in:
parent
7470f67acf
commit
a872fa3828
src/internet
@ -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());
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user