summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusalva Jesusalva <jesusalva@themanaworld.org>2022-10-17 21:15:26 +0000
committerJesusalva Jesusalva <jesusalva@themanaworld.org>2022-10-17 21:15:26 +0000
commit1435135f15363a7e4c5a19cbe6b38748f1970ede (patch)
treef74197f57f507273efd998f212deaf50ff462a54
parent3fb9f748adadbd74fa58a4410ed1082da9424936 (diff)
parent1b87eecca8b2bb89b2ac8a62ea327c67ed778cd6 (diff)
downloadapi-master.tar.gz
api-master.tar.bz2
api-master.tar.xz
api-master.zip
Merge branch 'github/fork/pazkero/jesusalva/compat' into 'master'HEADmaster
⚠ Compatibility layer for Pythonic Vault API See merge request legacy/api!2
-rw-r--r--src/routers/vault/models/vault/identity.js8
-rw-r--r--src/routers/vault/types/Identity.js10
2 files changed, 18 insertions, 0 deletions
diff --git a/src/routers/vault/models/vault/identity.js b/src/routers/vault/models/vault/identity.js
index d2b57fa..1496ae2 100644
--- a/src/routers/vault/models/vault/identity.js
+++ b/src/routers/vault/models/vault/identity.js
@@ -16,6 +16,14 @@ module.exports = {
type: Sequelize.STRING(320),
allowNull: false,
},
+ totp: {
+ type: Sequelize.STRING(32),
+ allowNull: true,
+ },
+ pass: {
+ type: Sequelize.STRING(128),
+ allowNull: true,
+ },
addedDate: {
type: Sequelize.DATE,
allowNull: false,
diff --git a/src/routers/vault/types/Identity.js b/src/routers/vault/types/Identity.js
index fb5171f..2a836b2 100644
--- a/src/routers/vault/types/Identity.js
+++ b/src/routers/vault/types/Identity.js
@@ -22,6 +22,16 @@ class Identity extends Model {
* the Vault user id
* @type {number}
*/
+ //totp;
+ /**
+ * TOTP 16-chars base64 secret (optional)
+ * @type {string}
+ */
+ //pass;
+ /**
+ * Optional PBKDF2 cryptographic secret to use with 2FA.
+ * @type {string}
+ */
//userId;
/**