cloudfoundry / uaa-cli

CLI for UAA written in Go
Apache License 2.0
21 stars 14 forks source link

uaa curl assumes host #62

Open sneal opened 4 years ago

sneal commented 4 years ago

Uaa curl does not work with any host but the targeted UAA.

uaac curl https://not-uaa-host.example.com is handy with workflows where you use uaa to grab a bearer token and then issue curl requests that utilize that token. For example https://docs.pivotal.io/platform/healthwatch/1-8/api/free-chunks.html#get

Here's a sample that doesn't work so well

$ uaa curl https://healthwatch-api.sys.example.com/v1/info -v

GET /https:/healthwatch-api.sys.example.com/v1/info HTTP/1.1
Host: login.sys.example.com
Authorization: Bearer abcd
cf-gitbot commented 4 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/172775434

The labels on this github issue will be updated when the story is started.