Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Commit

Permalink
add login with token
Browse files Browse the repository at this point in the history
  • Loading branch information
ttaeschn committed Feb 23, 2020
1 parent cd242c0 commit 4e4422a
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions VaultSyncPlugin/SynchronousVaultClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,7 @@ public SynchronousVaultClient(Uri vaultUrl, string authPath, string vaultLogin,
this.authPath = authPath;
this.vaultLogin = vaultLogin;
this.vaultPassword = vaultPassword;

if (authPath.Equals("token"))
{
this.client = new VaultClient(vaultUrl, token = vaultPassword);
}
else {
this.client = new VaultClient(vaultUrl);
}

this.client = new VaultClient(vaultUrl);
}

/// <summary>
Expand Down

1 comment on commit 4e4422a

@ttaeschn
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

implements #3

Please sign in to comment.