Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vault Auth Dotnet examples #4

Merged
merged 26 commits into from
Sep 29, 2021
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixing vault client settings name
  • Loading branch information
AnPucel committed Sep 29, 2021
commit 77fe8e8cdb7c2c53a86c54bd68e5c08670282b2f
4 changes: 2 additions & 2 deletions dotnet/Examples/ApproleResponseWrapping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public string GetSecretWithAppRole()
// We need to create two VaultClient objects for authenticating via AppRole. The first is for
// using the unwrap utility. We need to initialize the client with the wrapping token.
IAuthMethodInfo wrappedTokenAuthMethod = new TokenAuthMethodInfo(wrappingToken);
var wrappedVaultClientSettings = new VaultClientSettings(vaultAddr, wrappedTokenAuthMethod);
var vaultClientSettingsForUnwrapping = new VaultClientSettings(vaultAddr, wrappedTokenAuthMethod);

IVaultClient vaultClientForUnwrapping = new VaultClient(wrappedVaultClientSettings);
IVaultClient vaultClientForUnwrapping = new VaultClient(vaultClientSettingsForUnwrapping);

// We pass null here instead of the wrapping token to avoid depleting its single usage
// given that we already initialized our client with the wrapping token
Expand Down