s/VAULT_GITHUB_AUTH_TOKEN/VAULT_AUTH_GITHUB_TOKEN

This commit is contained in:
vishalnayak
2016-06-09 14:00:56 -04:00
parent 4e622714e9
commit 4e38509ac2
2 changed files with 3 additions and 3 deletions

View File

@@ -18,8 +18,8 @@ func (h *CLIHandler) Auth(c *api.Client, m map[string]string) (string, error) {
token, ok := m["token"]
if !ok {
if token = os.Getenv("VAULT_GITHUB_AUTH_TOKEN"); token == "" {
return "", fmt.Errorf("GitHub token should be provided either as 'value' for 'token' key,\nor via an env var VAULT_GITHUB_AUTH_TOKEN")
if token = os.Getenv("VAULT_AUTH_GITHUB_TOKEN"); token == "" {
return "", fmt.Errorf("GitHub token should be provided either as 'value' for 'token' key,\nor via an env var VAULT_AUTH_GITHUB_TOKEN")
}
}

View File

@@ -118,7 +118,7 @@ The above would make anyone in the "admins" team a root user in Vault
You can then auth with a user that is a member of the "admins" team using a Personal Access Token with the `read:org` scope.
GitHub token can also be supplied from the env variable `VAULT_GITHUB_AUTH_TOKEN`.
GitHub token can also be supplied from the env variable `VAULT_AUTH_GITHUB_TOKEN`.
```
$ vault auth -method=github token=000000905b381e723b3d6a7d52f148a5d43c4b45