Date
1 - 2 of 2
Dc4cities-project post from hsiliev@gmail.com requires approval
Corentin Dupont <corentin.dupont@...>
Thanks Hristo.
toggle quoted message
Show quoted text
I'm trying to retrieve the info from the API: curl "https://api.[your-domain.com]/v2/app_usage_events?results-per-page=1&after_guid=5f9db08a-3e18-4b1e-a09b-14be78eb3dab" -X GET \ -H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2MSIsImVtYWlsIjoiZW1haWwtMzMyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2Mzl9.4MWgEkbhuyG21w9vyZ_p8UhkY_YU0UoiGdscbqvr5bM" \ -H "Host: example.org" \ -H "Cookie: " But how can I get my authorization token? ---------- Forwarded message ---------- From: Hristo Iliev <hsiliev(a)gmail.com>
--
Corentin Dupont Researcher @ Create-Netwww.corentindupont.info |
|
You should create a client with the proper permissions/authorities. For
toggle quoted message
Show quoted text
bosh-lite this is done with: gem install cf-uaac uaac target uaa.bosh-lite.com --skip-ssl-validation uaac token client get admin -s admin-secret uaac client add id --authorized_grant_types client_credentials --authorities cloud_controller.admin --secret secret The ones above (CC.admin) are perhaps too much for just reading the events. 2016-02-09 18:11 GMT+02:00 Corentin Dupont <corentin.dupont(a)create-net.org>:
|
|