From 3d199e65167126eaf1e5abec64df87c1c21f73c9 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 17 Jan 2017 22:58:36 -0500 Subject: [PATCH] placeholder for device pub key and agent --- oauth3.core.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/oauth3.core.js b/oauth3.core.js index 56e6a67..5d46546 100644 --- a/oauth3.core.js +++ b/oauth3.core.js @@ -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;