Skip to content

Commit

Permalink
Vault TLS certificates auth method
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoslav committed Feb 1, 2018
1 parent 9671ca0 commit 7cd4368
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 7cd4368

Please sign in to comment.