Implement JWT auth (#188)

This commit is contained in:
Raman Harnak
2021-05-04 15:49:35 +03:00
committed by GitHub
parent 8417c61f8a
commit 9e8f22534f
8 changed files with 275 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ const got = require('got').default;
const jsonata = require('jsonata');
const { auth: { retrieveToken }, secrets: { getSecrets } } = require('./index');
const AUTH_METHODS = ['approle', 'token', 'github'];
const AUTH_METHODS = ['approle', 'token', 'github', 'jwt'];
async function exportSecrets() {
const vaultUrl = core.getInput('url', { required: true });