Méthode | Description | |
---|---|---|
CreateVaultClient ( |
Creates an instance of the vault client, with the provided IAuthenticationInfo used to authenticate and authorize the user. This is the typical client you would need for your consuming applications. If you need an instance of an administrative/root user based IVaultClient, pass a IAuthenticationInfo with a root policy mapping. If you need an instance of an unauthenticated IVaultClient, pass a var vaultClient = VaultClientFactory.CreateVaultClient(new Uri("http://127.0.0.1:8200", new GitHubAuthenticationInfo(personalAccessToken: "YOUR_TOKEN")); var administrativeVaultClient = VaultClientFactory.CreateVaultClient(new Uri("http://127.0.0.1:8200", new TokenAuthenticationInfo(token: "ROOT_POLICY_TOKEN")); var unauthenticatedVaultClient = VaultClientFactory.CreateVaultClient(new Uri("http://127.0.0.1:8200", authenticationInfo: null));
|
public static CreateVaultClient ( |
||
vaultServerUriWithPort | ||
authenticationInfo | IAuthenticationInfo | |
continueAsyncTasksOnCapturedContext | bool | |
serviceTimeout | System.TimeSpan | |
postHttpClientInitializeAction | Action |
|
Résultat | IVaultClient |