Bug 744614 - Make token server client conform with spec change; r=rnewman

This commit is contained in:
Gregory Szorc 2012-04-11 15:24:21 -07:00
Родитель cc3b53b3db
Коммит 1afc1f104d
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -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,
});