- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 139
 
Description
Hi
I am new to Vault and trying to use it.
I have created a simple user in the Vault with /userpass accesss (admin/admin).
I have added a simple secret in the cubbyhole secret engine for this user.
Running the following code:
IAuthMethodInfo authMethod = new UserPassAuthMethodInfo("admin", "admin");
// Initialize settings. You can also set proxies, custom delegates etc. here.
var vaultClientSettings = new VaultClientSettings("http://localhost:8200", authMethod);
IVaultClient vaultClient = new VaultClient(vaultClientSettings);
vaultClient.V1.Auth.PerformImmediateLogin();
// Use client to read a Cubbyhole secret.
var s = await vaultClient.V1.Secrets.Cubbyhole.ReadSecretAsync("TDS");
Error is not very informativ:
VaultSharp.Core.VaultApiException: '{"errors":[]}
What am I missing here ?
Appreciate any help.
Regards