docs: Fix examples of auth via JSON
For both userpass and LDAP
This commit is contained in:
parent
d634a92d2a
commit
2a1eac837c
|
@ -39,7 +39,7 @@ The password should be sent in the POST body encoded as JSON.
|
|||
|
||||
```shell
|
||||
$ curl $VAULT_ADDR/v1/auth/ldap/login/mitchellh \
|
||||
-d "password=foo"
|
||||
-d '{ "password": "foo" }'
|
||||
```
|
||||
|
||||
The response will be in JSON. For example:
|
||||
|
|
|
@ -35,7 +35,7 @@ The password should be sent in the POST body encoded as JSON.
|
|||
|
||||
```shell
|
||||
$ curl $VAULT_ADDR/v1/auth/userpass/login/mitchellh \
|
||||
-d '{"password: "foo"}'
|
||||
-d '{ "password": "foo" }'
|
||||
```
|
||||
|
||||
The response will be in JSON. For example:
|
||||
|
|
Loading…
Reference in New Issue