mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 02:10:28 +00:00
CLOUD: Use correct redirect_uris
Usage of #ifdef there (and in StorageWizardDialog) means that ScummVM doesn't support both local webserver and scummvm.org paths at the same time. It's either built with SDL_net (thus supporting localhost path) or without it (thus using scummvm.org).
This commit is contained in:
parent
6ac69729d5
commit
1addefad7e
@ -67,7 +67,11 @@ void DropboxStorage::getAccessToken(Common::String code) {
|
||||
request->addPostField("grant_type=authorization_code");
|
||||
request->addPostField("client_id=" + Common::String(KEY));
|
||||
request->addPostField("client_secret=" + Common::String(SECRET));
|
||||
#ifdef USE_SDL_NET
|
||||
request->addPostField("&redirect_uri=http%3A%2F%2Flocalhost%3A12345%2F");
|
||||
#else
|
||||
request->addPostField("&redirect_uri=https%3A%2F%2Fwww.scummvm.org/c/code");
|
||||
#endif
|
||||
addRequest(request);
|
||||
}
|
||||
|
||||
|
@ -87,7 +87,11 @@ void GoogleDriveStorage::getAccessToken(BoolCallback callback, Common::String co
|
||||
}
|
||||
request->addPostField("client_id=" + Common::String(KEY));
|
||||
request->addPostField("client_secret=" + Common::String(SECRET));
|
||||
request->addPostField("&redirect_uri=http%3A%2F%2Flocalhost");
|
||||
#ifdef USE_SDL_NET
|
||||
request->addPostField("&redirect_uri=http%3A%2F%2Flocalhost%3A12345");
|
||||
#else
|
||||
request->addPostField("&redirect_uri=https%3A%2F%2Fwww.scummvm.org/c/code");
|
||||
#endif
|
||||
addRequest(request);
|
||||
}
|
||||
|
||||
|
@ -83,7 +83,11 @@ void OneDriveStorage::getAccessToken(BoolCallback callback, Common::String code)
|
||||
}
|
||||
request->addPostField("client_id=" + Common::String(KEY));
|
||||
request->addPostField("client_secret=" + Common::String(SECRET));
|
||||
#ifdef USE_SDL_NET
|
||||
request->addPostField("&redirect_uri=http%3A%2F%2Flocalhost%3A12345%2F");
|
||||
#else
|
||||
request->addPostField("&redirect_uri=https%3A%2F%2Fwww.scummvm.org/c/code");
|
||||
#endif
|
||||
addRequest(request);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user