diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-08-29 16:47:48 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-08-29 16:47:48 -0300 |
commit | 1b87eecca8b2bb89b2ac8a62ea327c67ed778cd6 (patch) | |
tree | f74197f57f507273efd998f212deaf50ff462a54 /src | |
parent | 3fb9f748adadbd74fa58a4410ed1082da9424936 (diff) | |
download | api-github/fork/pazkero/jesusalva/compat.tar.gz api-github/fork/pazkero/jesusalva/compat.tar.bz2 api-github/fork/pazkero/jesusalva/compat.tar.xz api-github/fork/pazkero/jesusalva/compat.zip |
Compatibility layer for Pythonic Vault APIgithub/fork/pazkero/jesusalva/compat
Diffstat (limited to 'src')
-rw-r--r-- | src/routers/vault/models/vault/identity.js | 8 | ||||
-rw-r--r-- | src/routers/vault/types/Identity.js | 10 |
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; /** |