From 1b87eecca8b2bb89b2ac8a62ea327c67ed778cd6 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 29 Aug 2021 16:47:48 -0300 Subject: Compatibility layer for Pythonic Vault API --- src/routers/vault/models/vault/identity.js | 8 ++++++++ src/routers/vault/types/Identity.js | 10 ++++++++++ 2 files changed, 18 insertions(+) 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; /** -- cgit v1.2.3-60-g2f50