mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
command/auth-enable
This commit is contained in:
@@ -27,7 +27,7 @@ func (c *Sys) EnableAuth(path, authType, desc string) error {
|
||||
"description": desc,
|
||||
}
|
||||
|
||||
r := c.c.NewRequest("PUT", fmt.Sprintf("/v1/sys/auth/%s", path))
|
||||
r := c.c.NewRequest("POST", fmt.Sprintf("/v1/sys/auth/%s", path))
|
||||
if err := r.SetJSONBody(body); err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user