uaa-cli icon indicating copy to clipboard operation
uaa-cli copied to clipboard

uaa curl assumes host

Open sneal opened this issue 5 years ago • 1 comments

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

sneal avatar May 11 '20 18:05 sneal

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.

cf-gitbot avatar May 11 '20 18:05 cf-gitbot