mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 744614 - Make token server client conform with spec change; r=rnewman
This commit is contained in:
parent
24ce7aadaf
commit
23e0f8c739
@ -25,7 +25,7 @@ add_test(function test_working_bid_exchange() {
|
||||
|
||||
let body = JSON.stringify({
|
||||
id: "id",
|
||||
secret: "key",
|
||||
key: "key",
|
||||
api_endpoint: service,
|
||||
uid: "uid",
|
||||
});
|
||||
@ -148,7 +148,7 @@ add_test(function test_rich_media_types() {
|
||||
|
||||
let body = JSON.stringify({
|
||||
id: "id",
|
||||
secret: "key",
|
||||
key: "key",
|
||||
api_endpoint: "foo",
|
||||
uid: "uid",
|
||||
});
|
||||
|
@ -216,7 +216,7 @@ TokenServerClient.prototype = {
|
||||
return;
|
||||
}
|
||||
|
||||
for each (let k in ["id", "secret", "api_endpoint", "uid"]) {
|
||||
for each (let k in ["id", "key", "api_endpoint", "uid"]) {
|
||||
if (!(k in result)) {
|
||||
let error = new TokenServerClientServerError("Expected key not " +
|
||||
" present in result: " +
|
||||
@ -230,7 +230,7 @@ TokenServerClient.prototype = {
|
||||
this._log.debug("Successful token response: " + result.id);
|
||||
cb(null, {
|
||||
id: result.id,
|
||||
key: result.secret,
|
||||
key: result.key,
|
||||
endpoint: result.api_endpoint,
|
||||
uid: result.uid,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user