Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/rajanadar/VaultSharp
Browse files Browse the repository at this point in the history
  • Loading branch information
rajanadar committed Nov 26, 2020
2 parents 2668708 + 86c0050 commit c72a2ac
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ var vaultClientSettings = new VaultClientSettings("https://MY_VAULT_SERVER:8200"
IVaultClient vaultClient = new VaultClient(vaultClientSettings);

// any operations done using the vaultClient will use the
vault token/policies mapped to the client certificate.
// vault token/policies mapped to the client certificate.
```

#### Token Auth Method
Expand All @@ -426,7 +426,7 @@ var vaultClientSettings = new VaultClientSettings("https://MY_VAULT_SERVER:8200"
IVaultClient vaultClient = new VaultClient(vaultClientSettings);

// any operations done using the vaultClient will use the
vault token/policies mapped to the vault token.
// vault token/policies mapped to the vault token.
```

##### Token Creation
Expand All @@ -449,7 +449,7 @@ var vaultClientSettings = new VaultClientSettings("https://MY_VAULT_SERVER:8200"
IVaultClient vaultClient = new VaultClient(vaultClientSettings);

// any operations done using the vaultClient will use the
vault token/policies mapped to the username/password.
// vault token/policies mapped to the username/password.
```

#### Custom Auth Method - Bring your own Vault Token
Expand Down Expand Up @@ -493,7 +493,7 @@ IVaultClient vaultClient = new VaultClient(vaultClientSettings);
- As a client, whenever you determine that the token needs to be re-fetched, call this method.
- It'll make VaultSharp fetch the vault token again before the next operation.

```
```cs
// when it is time to re-fetch the login token, just set this flag.
vaultClient.V1.Auth.ResetVaultToken();

Expand Down Expand Up @@ -1239,6 +1239,7 @@ var dataKeyCipherText = dataKeyResponse.Data.Base64EncodedCipherText;

```cs
var allKeys = await _authenticatedVaultClient.V1.Secrets.Transit.ReadAllEncryptionKeysAsync();
````

### System Backend

Expand All @@ -1248,7 +1249,7 @@ var allKeys = await _authenticatedVaultClient.V1.Secrets.Transit.ReadAllEncrypti
VaultSharp already supports several of the System backend features.

```cs
// vaultClient.V1.System.<method> The method you are looking for.
vaultClient.V1.System.<method> // The method you are looking for.
```

### Can I inject my own HttpClient into VaultSharp?
Expand Down

0 comments on commit c72a2ac

Please sign in to comment.