From 370ba51f51231ba929673f522a4000382bb69ee4 Mon Sep 17 00:00:00 2001 From: Sudipto Sarkar Date: Fri, 18 Nov 2022 19:18:29 +0530 Subject: [PATCH] Added support for TLS Certificate based Authentication --- features.md | 5 +++++ index.d.ts | 1 + src/commands.js | 11 +++++++++++ 3 files changed, 17 insertions(+) diff --git a/features.md b/features.md index ba0fb70..b72f29e 100644 --- a/features.md +++ b/features.md @@ -252,6 +252,11 @@ `POST /auth/{{mount_point}}{{^mount_point}}radius{{/mount_point}}/login/{{username}}` +## vault.certLogin + +`POST /auth/cert/login` + + ## vault.tokenAccessors `LIST /auth/token/accessors` diff --git a/index.d.ts b/index.d.ts index 8abb978..cd7b7be 100644 --- a/index.d.ts +++ b/index.d.ts @@ -86,6 +86,7 @@ declare namespace NodeVault { ldapLogin(options?: Option): Promise; oktaLogin(options?: Option): Promise; radiusLogin(options?: Option): Promise; + certLogin(options?: Option): Promise; tokenAccessors(options?: Option): Promise; tokenCreate(options?: Option): Promise; tokenCreateOrphan(options?: Option): Promise; diff --git a/src/commands.js b/src/commands.js index a71380a..cbcc5e7 100644 --- a/src/commands.js +++ b/src/commands.js @@ -732,6 +732,17 @@ module.exports = { res: tokenResponse, }, }, + certLogin: { + method: 'POST', + path: '/auth/cert/login', + tokenSource: true, + schema: { + req: { + type: 'object', + }, + res: tokenResponse, + }, + }, tokenAccessors: { method: 'LIST', path: '/auth/token/accessors',