Skip to content

Commit

Permalink
Merge pull request kelseyhightower#661 from dragoslav/master
Browse files Browse the repository at this point in the history
Vault TLS certificates auth method
  • Loading branch information
okushchenko authored Feb 20, 2018
2 parents b77b923 + 7cd4368 commit a88c922
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backends/vault/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ func authenticate(c *vaultapi.Client, authType string, params map[string]string)
secret, err = c.Logical().Write(fmt.Sprintf("/auth/userpass/login/%s", username), map[string]interface{}{
"password": password,
})
case "cert":
secret, err = c.Logical().Write("/auth/cert/login", map[string]interface{}{})
}

if err != nil {
Expand Down

0 comments on commit a88c922

Please sign in to comment.