chiefy / vaulted

nodejs based wrapper for HashiCorp's Vault HTTP API
https://chiefy.github.io/vaulted
MIT License
47 stars 6 forks source link

token not returned on init() #69

Closed jmls closed 8 years ago

jmls commented 8 years ago

The results from this piece of code

var Vaulted = require('vaulted');

var vault = new Vaulted({
    vault_host: "myVaultHost",
    no_global_token: true
});

vault.prepare()
.then(function() {
    return vault.init()
})
.then(function(data) {
    console.log(data);
})

does not return token and keys as documented. It appears that data is actually an instance of vault, and the token property is not set

image

kenjones-cisco commented 8 years ago

That is based on the latest master not the latest releases version.

You are running a version other than master as the keys attribute was removed as well as the need to use the no_global_token (it was removed as well).

jmls commented 8 years ago

meh. will pull and retry ;) thanks.

jmls commented 8 years ago

perfect - working - thanks again.