Skip to content

Instantly share code, notes, and snippets.

@nctiggy
Created April 9, 2015 22:02
Show Gist options
  • Save nctiggy/84b9c49e5f9ee989f806 to your computer and use it in GitHub Desktop.
Save nctiggy/84b9c49e5f9ee989f806 to your computer and use it in GitHub Desktop.
➜ ~ CF_TRACE=true cf login
VERSION:
6.10.0-b78bf10
API endpoint: https://api.bellevue.lab
REQUEST: [2015-04-09T15:00:38-07:00]
GET /v2/info HTTP/1.1
Host: api.bellevue.lab
Accept: application/json
Content-Type: application/json
User-Agent: go-cli 6.10.0-b78bf10 / darwin
RESPONSE: [2015-04-09T15:00:38-07:00]
HTTP/1.1 200 OK
Content-Length: 372
Content-Type: application/json;charset=utf-8
Date: Thu, 09 Apr 2015 21:43:25 GMT
Server: nginx
X-Cf-Requestid: e1646659-3de5-440d-6f2d-700629ea7043
X-Content-Type-Options: nosniff
X-Vcap-Request-Id: e584f647-899b-4969-6786-f1c9d1d1fa0c::eac3436f-2f4f-4a58-bf7e-4d0cb05919cb
{"name":"vcap","build":"2222","support":"http://support.cloudfoundry.com","version":2,"description":"Cloud Foundry sponsored by Pivotal","authorization_endpoint":"https://login.bellevue.lab","token_endpoint":"https://uaa.bellevue.lab","min_cli_version":null,"min_recommended_cli_version":null,"api_version":"2.23.0","logging_endpoint":"wss://loggregator.bellevue.lab:443"}
REQUEST: [2015-04-09T15:00:38-07:00]
GET /login HTTP/1.1
Host: login.bellevue.lab
Accept: application/json
Content-Type: application/json
User-Agent: go-cli 6.10.0-b78bf10 / darwin
RESPONSE: [2015-04-09T15:00:38-07:00]
HTTP/1.1 200 OK
Content-Length: 626
Cache-Control: no-cache
Cache-Control: no-store
Cache-Control: no-cache, no-store, max-age=0
Content-Language: en-US
Content-Type: application/json;charset=UTF-8
Date: Thu, 09 Apr 2015 21:46:26 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Pragma: no-cache
Server: Apache-Coyote/1.1
X-Cf-Requestid: 2f66be7e-9fdc-4ea9-5c1f-0053ecad5b47
X-Frame-Options: DENY
{"timestamp":"2015-01-23T22:44:14+0000","app":{"version":"1.14"},"idpDefinitions":[],"commit_id":"c4e3209","prompts":{"username":["text","Email"],"password":["password","Password"],"passcode":["password","One Time Code (Get one at https://login.bellevue.lab/passcode)"]},"forgotPasswordLink":"https://console.bellevue.lab/password_resets/new","createAccountLink":"https://console.bellevue.lab/register","links":{"register":"https://console.bellevue.lab/register","passwd":"https://console.bellevue.lab/password_resets/new","login":"https://login.bellevue.lab","uaa":"https://uaa.bellevue.lab"},"entityID":"login.bellevue.lab"}
Email> admin
Password>
Authenticating...
REQUEST: [2015-04-09T15:01:28-07:00]
POST /oauth/token HTTP/1.1
Host: login.bellevue.lab
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/x-www-form-urlencoded
User-Agent: go-cli 6.10.0-b78bf10 / darwin
grant_type=password&password=[PRIVATE DATA HIDDEN]&scope=&username=admin
RESPONSE: [2015-04-09T15:01:29-07:00]
HTTP/1.1 502 Bad Gateway
Content-Length: 67
Content-Type: text/plain; charset=utf-8
Date: Thu, 09 Apr 2015 21:47:15 GMT
X-Cf-Requestid: fcdb153d-9e4f-4421-751a-e6e7329b4c45
X-Cf-Routererror: endpoint_failure
502 Bad Gateway: Registered endpoint failed to handle the request.
Server error, status code: 502, error code: , message:
Password>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment