this is on vagrant so this is exactly what i'm doing. passwords/tokens aren't actually used anywhere other then my vagrant machines
curl http://192.168.50.10:8000/login \
-H "Accept: application/json" \
-H "Content-type: application/json" \
-d '{ "username": "austin", "password":"austin", "eauth":"pam"}'
token=0c6bcdc00716a3fc5b4f46ded424423d4e762e0c
curl http://192.168.50.10:8000/keys \
-H "Accept: application/json" \
-H "Content-type: application/json" \
-H "X-Auth-Token: 0c6bcdc00716a3fc5b4f46ded424423d4e762e0c" \
-d '{ "mid": "xxxxxx" }'
Can you provide a repo with the vagrant file and all the other required files? That would make it easier to run this Vagrantfile.