curl http://localhost:8200/v1/auth/userpass/login/someuser -d '{"password": "somepwd"}'
No output
vault auth -method=userpass username=someuser password=somepwd
Successfully authenticated! You are now logged in.
The token below is already saved in the session. You do not
need to "vault auth" again with the token.
token: f7eadc22-823c-a439-84cb-dc88ce8a2f8e
token_duration: 2592000
token_policies: [cassandra, default]
Thanks
Navin
curl -v -d '{"password": "somepwd"}' http://localhost:8200/v1/auth/userpass/login/someuser
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8200 (#0)
> POST /v1/auth/userpass/login/someuser HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:8200
> Accept: */*
> Content-Length: 28
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 28 out of 28 bytes
< HTTP/1.1 307 Temporary Redirect
< Location: http://10.42.32.61:8200/v1/auth/userpass/login/someuser
< Date: Mon, 01 Aug 2016 19:35:19 GMT
< Content-Length: 0
< Content-Type: text/plain; charset=utf-8
<