placeholder for device pub key and agent

This commit is contained in:
AJ ONeal 2017-01-17 22:58:36 -05:00
parent 386abb9121
commit 3d199e6516
1 changed files with 8 additions and 2 deletions

View File

@ -232,8 +232,14 @@
var params = {
"grant_type": grantType
, "username": username
, "password": passphrase
//, "totp": opts.totp
, "password": (opts.otpUuid && (opts.otpUuid + ':') || '') + passphrase // might be otpCode
, "totp": opts.totp || opts.totpToken || undefined
, "otp": opts.otp || opts.otpCode || undefined
, "otp_uuid": opts.otpUuid || undefined
, "user_agent": opts.userAgent || undefined // AJ's Macbook
, "public_key": opts.rememberDevice && opts.publicKey || undefined
, "public_key_type": opts.rememberDevice && opts.publicKeyType || undefined // RSA/ECDSA
//, "jwt": opts.jwt // TODO sign a proof with a previously loaded public_key
};
var uri = args.url;
var body;