I want to get data from cloud foundry using curl, but I\'m not able to authenticate (oauth against CF). Please, could someone point me to and example how to get oauth token?
Try this. I found it in the Cloud Foundry docs: https://github.com/cloudfoundry/uaa/blob/master/docs/UAA-APIs.rst#oauth2-token-endpoint
curl -v -XPOST -H"Application/json" -u "cf:" --data "username=&password=&client_id=cf&grant_type=password&response_type=token" https://login.run.pivotal.io/oauth/token