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
parent 24ce7aadaf
commit 23e0f8c739
2 changed files with 4 additions and 4 deletions

View File

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

View File

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