mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-23 07:31:09 +02:00
Merge pull request #315 from justincampbell/docs-json-auth
docs: Fix examples of auth via JSON
This commit is contained in:
commit
a0ad309d1f
@ -39,7 +39,7 @@ The password should be sent in the POST body encoded as JSON.
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ curl $VAULT_ADDR/v1/auth/ldap/login/mitchellh \
|
$ curl $VAULT_ADDR/v1/auth/ldap/login/mitchellh \
|
||||||
-d "password=foo"
|
-d '{ "password": "foo" }'
|
||||||
```
|
```
|
||||||
|
|
||||||
The response will be in JSON. For example:
|
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
|
```shell
|
||||||
$ curl $VAULT_ADDR/v1/auth/userpass/login/mitchellh \
|
$ curl $VAULT_ADDR/v1/auth/userpass/login/mitchellh \
|
||||||
-d '{"password: "foo"}'
|
-d '{ "password": "foo" }'
|
||||||
```
|
```
|
||||||
|
|
||||||
The response will be in JSON. For example:
|
The response will be in JSON. For example:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user