public async Task Login_ShouldLogin() { var options = new VaultOptions { BaseUrl = new Uri("https://vault.dev.happytravel.com/v1/"), Role = "role", Engine = "secrets" }; using var client = new VaultClient(options, new NullLoggerFactory()); await client.Login(""); var secret = await client.Get("edo/connection-string"); }
public Task <VaultResponse <TData> > Read <TData>(string path, CancellationToken ct = default(CancellationToken)) { return(_client.Get <VaultResponse <TData> >($"{_uriBasePath}/{path}", TimeSpan.Zero, ct)); }