mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 02:10:28 +00:00
CLOUD: Change interaction with /refresh endpoint
Refresh token is now passed as custom HTTP header, not in GET parameter, to prevent them being written into server logs.
This commit is contained in:
parent
e7ca2b8db0
commit
85431c39bf
@ -139,8 +139,9 @@ void BaseStorage::refreshAccessToken(BoolCallback callback, Networking::ErrorCal
|
||||
if (errorCallback == nullptr)
|
||||
errorCallback = getErrorPrintingCallback();
|
||||
|
||||
Common::String url = Common::String::format("https://cloud.scummvm.org/%s/refresh?code=%s", cloudProvider().c_str(), _refreshToken.c_str());
|
||||
Common::String url = Common::String::format("https://cloud.scummvm.org/%s/refresh", cloudProvider().c_str());
|
||||
Networking::CurlJsonRequest *request = new Networking::CurlJsonRequest(innerCallback, errorCallback, url);
|
||||
request->addHeader("X-ScummVM-Refresh-Token: " + _refreshToken);
|
||||
addRequest(request);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user