placeholder for device pub key and agent
This commit is contained in:
parent
386abb9121
commit
3d199e6516
|
@ -232,8 +232,14 @@
|
||||||
var params = {
|
var params = {
|
||||||
"grant_type": grantType
|
"grant_type": grantType
|
||||||
, "username": username
|
, "username": username
|
||||||
, "password": passphrase
|
, "password": (opts.otpUuid && (opts.otpUuid + ':') || '') + passphrase // might be otpCode
|
||||||
//, "totp": opts.totp
|
, "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 uri = args.url;
|
||||||
var body;
|
var body;
|
||||||
|
|
Loading…
Reference in New Issue