Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

Commit

Permalink
update loadgen for API changes - all apis which can authenticate a se…
Browse files Browse the repository at this point in the history
…ssion or issue a cert now require an emphemeral argument - issue #1436
  • Loading branch information
lloyd committed Apr 16, 2012
1 parent 5dfb3ff commit 02b89f9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/load_gen/activities/reset_pass.js
Expand Up @@ -77,7 +77,8 @@ exports.startFunc = function(cfg, cb) {
// and simulate clickthrough
wcli.post(cfg, '/wsapi/complete_user_creation', context, {
token: r.body,
pass: user.password
pass: user.password,
ephemeral: false
}, function (err, r) {
if (err) {
return cb(err);
Expand Down
3 changes: 2 additions & 1 deletion lib/load_gen/activities/signup.js
Expand Up @@ -74,7 +74,8 @@ exports.startFunc = function(cfg, cb) {
// and simulate clickthrough
wcli.post(cfg, '/wsapi/complete_user_creation', context, {
token: r.body,
pass: user.password
pass: user.password,
ephemeral: false
}, function (err, r) {
try {
if (err) throw err;
Expand Down
5 changes: 3 additions & 2 deletions lib/load_gen/common.js
Expand Up @@ -15,7 +15,7 @@ exports.auth = function(cfg, user, ctx, email, cb) {
} else {
wcli.post(
cfg, '/wsapi/authenticate_user', ctx,
{ email: email, pass: user.password },
{ email: email, pass: user.password, ephemeral: false },
function(err, r) {
try {
if (err) throw err;
Expand All @@ -41,7 +41,8 @@ exports.authAndKey = function(cfg, user, ctx, email, cb) {
// and now let's certify the pubkey
wcli.post(cfg, '/wsapi/cert_key', ctx, {
email: email,
pubkey: keypair.publicKey.serialize()
pubkey: keypair.publicKey.serialize(),
ephemeral: false
}, function(err, resp) {
try {
if (err) throw err;
Expand Down

0 comments on commit 02b89f9

Please sign in to comment.