cloudfoundry / cli

The official command line client for Cloud Foundry
https://docs.cloudfoundry.org/cf-cli
Apache License 2.0
1.75k stars 927 forks source link

New v7 CLI changes login flow and fails for us. #1964

Closed andrew-edgar closed 4 years ago

andrew-edgar commented 4 years ago

Please fill out the issue checklist below and provide ALL the requested information.

Describe the bug and the command you saw an issue with Provide details on what you were trying to do (and why). Using the new cf v7 CLI and logging into our env. the login fails. Running the trace I see the different endpoint being called to login from what v6 used to call.

What happened The CLI calls "uaa./login" when it should be calling the "login: href" as returned by the api / endpoint

Expected behavior Login works with the v7 as the same as v6

To Reproduce Steps to reproduce the behavior; include the exact CLI commands and verbose output:

  1. Run cf login

Provide more context

I will attach the -v output from the cf v6 and cf v7 below.

cf-gitbot commented 4 years ago

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

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

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

andrew-edgar commented 4 years ago

Here is the v6 login trace ...

  ➜  ~ cf login -v
API endpoint: https://api.us-south.cf.dev.cloud.ibm.com

REQUEST: [2020-06-25T08:02:44-06:00]
GET /v2/info HTTP/1.1
Host: api.us-south.cf.dev.cloud.ibm.com
Accept: application/json
User-Agent: cf/6.51.0+2acd15650.2020-04-07 (go1.13.8; amd64 darwin)

RESPONSE: [2020-06-25T08:02:45-06:00]
HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Type: application/json;charset=utf-8
Date: Thu, 25 Jun 2020 14:02:45 GMT
Server: nginx
X-Backside-Transport: OK OK
X-Content-Type-Options: nosniff
X-Global-Transaction-Id: 196c55655ef4ae85023a4502
{
  "api_version": "2.148.0",
  "app_ssh_endpoint": "ssh.us-south.cf.dev.cloud.ibm.com:2222",
  "app_ssh_host_key_fingerprint": "9b:bf:b2:24:6a:ea:00:f0:77:96:3e:d7:42:67:ec:fc",
  "app_ssh_oauth_client": "ssh-proxy",
  "authorization_endpoint": "https://iam.test.cloud.ibm.com/cloudfoundry/login/ys0-us-south",
  "build": "v13.2.0",
  "description": "IBM Bluemix",
  "doppler_logging_endpoint": "wss://doppler.us-south.cf.dev.cloud.ibm.com:443",
  "min_cli_version": null,
  "min_recommended_cli_version": null,
  "name": "IBM Cloud",
  "osbapi_version": "2.15",
  "support": "http://ibm.biz/bluemix-supportinfo",
  "token_endpoint": "[PRIVATE DATA HIDDEN]",
  "version": 0
}

REQUEST: [2020-06-25T08:02:45-06:00]
GET /cloudfoundry/login/ys0-us-south/login HTTP/1.1
Host: iam.test.cloud.ibm.com
Accept: application/json
Connection: close
User-Agent: cf/6.51.0+2acd15650.2020-04-07 (go1.13.8; amd64 darwin)

RESPONSE: [2020-06-25T08:02:46-06:00]
HTTP/1.1 200 OK
Cache-Control: max-age=0, no-cache, no-store
Content-Language: en-US
Content-Length: 708
Content-Type: application/json
Date: Thu, 25 Jun 2020 14:02:46 GMT
Expires: Thu, 25 Jun 2020 14:00:13 GMT
Pragma: no-cache
Set-Cookie: sessioncookie=7e13c7f24ed715d830b96c70e135b7eb; Path=/; Secure; HttpOnly
Set-Cookie: X-Uaa-Csrf=uHwuYeMJP2Rt2nW97eVXRm; Max-Age=86400; Expires=Fri, 26-Jun-2020 14:00:13 GMT; Path=/; Secure; HttpOnly
Strict-Transport-Security: max-age=31536000
Transaction-Id: a399d342ad1f42ec855e6a1e5743751a
X-Backside-Transport: OK OK
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-Global-Transaction-Id: 196c55655ef4aded02a2f3b0
X-Xss-Protection: 1; mode=block
{
  "app": {
    "version": "74.18.0"
  },
  "commit_id": "git-metadata-not-found",
  "entityID": "login.us-south.cf.dev.cloud.ibm.com",
  "idpDefinitions": {},
  "links": {
    "login": "https://iam.test.cloud.ibm.com/cloudfoundry/login/ys0-us-south",
    "passcode": "https://identity-1.us-south.iam.test.cloud.ibm.com/cloudfoundry/login/ys0-us-south/passcode",
    "passwd": "/forgot_password",
    "register": "/create_account",
    "uaa": "https://uaa.us-south.cf.dev.cloud.ibm.com"
  },
  "prompts": {
    "passcode": [
      "password",
      "One Time Code (Get one at https://identity-1.us-south.iam.test.cloud.ibm.com/cloudfoundry/login/ys0-us-south/passcode )"
    ],
    "password": "[PRIVATE DATA HIDDEN]",
    "username": [
      "text",
      "Email"
    ]
  },
  "timestamp": "2020-05-19T16:32:18+0000",
  "zone_name": "uaa"
}

REQUEST: [2020-06-25T08:02:46-06:00]
GET / HTTP/1.1
Host: api.us-south.cf.dev.cloud.ibm.com
Accept: application/json
User-Agent: cf/6.51.0+2acd15650.2020-04-07 (go1.13.8; amd64 darwin)

RESPONSE: [2020-06-25T08:02:47-06:00]
HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Type: application/json;charset=utf-8
Date: Thu, 25 Jun 2020 14:02:47 GMT
Server: nginx
X-Backside-Transport: OK OK
X-Content-Type-Options: nosniff
X-Global-Transaction-Id: 196c55655ef4ae87013dac20
{
  "links": {
    "app_ssh": {
      "href": "ssh.us-south.cf.dev.cloud.ibm.com:2222",
      "meta": {
        "host_key_fingerprint": "9b:bf:b2:24:6a:ea:00:f0:77:96:3e:d7:42:67:ec:fc",
        "oauth_client": "ssh-proxy"
      }
    },
    "bits_service": null,
    "cloud_controller_v2": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v2",
      "meta": {
        "version": "2.148.0"
      }
    },
    "cloud_controller_v3": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3",
      "meta": {
        "version": "3.83.0"
      }
    },
    "credhub": null,
    "log_cache": {
      "href": "https://log-cache.us-south.cf.dev.cloud.ibm.com"
    },
    "log_stream": {
      "href": "https://log-stream.us-south.cf.dev.cloud.ibm.com"
    },
    "logging": {
      "href": "wss://doppler.us-south.cf.dev.cloud.ibm.com:443"
    },
    "login": {
      "href": "https://iam.test.cloud.ibm.com/cloudfoundry/login/ys0-us-south"
    },
    "network_policy_v0": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/networking/v0/external"
    },
    "network_policy_v1": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/networking/v1/external"
    },
    "routing": null,
    "self": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com"
    },
    "uaa": {
      "href": "https://uaa.us-south.cf.dev.cloud.ibm.com"
    }
  }
}

REQUEST: [2020-06-25T08:02:47-06:00]
GET /v3 HTTP/1.1
Host: api.us-south.cf.dev.cloud.ibm.com
Accept: application/json
User-Agent: cf/6.51.0+2acd15650.2020-04-07 (go1.13.8; amd64 darwin)

RESPONSE: [2020-06-25T08:02:47-06:00]
HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Type: application/json; charset=utf-8
Date: Thu, 25 Jun 2020 14:02:47 GMT
Referrer-Policy: strict-origin-when-cross-origin
Server: nginx
X-Backside-Transport: OK OK
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Global-Transaction-Id: 196c55655ef4ae870113a072
X-Permitted-Cross-Domain-Policies: none
X-Runtime: 0.005402
X-Xss-Protection: 1; mode=block
{
  "links": {
    "apps": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/apps"
    },
    "audit_events": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/audit_events"
    },
    "buildpacks": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/buildpacks"
    },
    "builds": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/builds"
    },
    "deployments": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/deployments"
    },
    "domains": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/domains"
    },
    "droplets": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/droplets"
    },
    "environment_variable_groups": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/environment_variable_groups"
    },
    "feature_flags": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/feature_flags"
    },
    "info": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/info"
    },
    "isolation_segments": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/isolation_segments"
    },
    "organization_quotas": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/organization_quotas"
    },
    "organizations": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/organizations"
    },
    "packages": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/packages"
    },
    "processes": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/processes"
    },
    "resource_matches": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/resource_matches"
    },
    "roles": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/roles"
    },
    "routes": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/routes"
    },
    "security_groups": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/security_groups"
    },
    "self": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3"
    },
    "service_brokers": {
      "experimental": true,
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/service_brokers"
    },
    "service_instances": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/service_instances"
    },
    "service_offerings": {
      "experimental": true,
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/service_offerings"
    },
    "service_plans": {
      "experimental": true,
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/service_plans"
    },
    "space_quotas": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/space_quotas"
    },
    "spaces": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/spaces"
    },
    "stacks": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/stacks"
    },
    "tasks": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/tasks"
    },
    "users": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/users"
    }
  }
}

REQUEST: [2020-06-25T08:02:47-06:00]
GET /cloudfoundry/login/ys0-us-south/login HTTP/1.1
Host: iam.test.cloud.ibm.com
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Connection: close
User-Agent: cf/6.51.0+2acd15650.2020-04-07 (go1.13.8; amd64 darwin)

RESPONSE: [2020-06-25T08:02:47-06:00]
HTTP/1.1 200 OK
Cache-Control: max-age=0, no-cache, no-store
Content-Language: en-US
Content-Length: 708
Content-Type: application/json
Date: Thu, 25 Jun 2020 14:02:47 GMT
Expires: Thu, 25 Jun 2020 13:58:17 GMT
Pragma: no-cache
Set-Cookie: sessioncookie=feded2058a2789cee20595d3c7b0e8f8; Path=/; Secure; HttpOnly
Set-Cookie: X-Uaa-Csrf=lbrTMbqEZS3DodcMq68E2X; Max-Age=86400; Expires=Fri, 26-Jun-2020 13:58:17 GMT; Path=/; Secure; HttpOnly
Strict-Transport-Security: max-age=31536000
Transaction-Id: 20564c5e36c2490b95c3db313f9e8247
X-Backside-Transport: OK OK
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-Global-Transaction-Id: 196c55655ef4ad7902b38a00
X-Xss-Protection: 1; mode=block
{
  "app": {
    "version": "74.18.0"
  },
  "commit_id": "git-metadata-not-found",
  "entityID": "login.us-south.cf.dev.cloud.ibm.com",
  "idpDefinitions": {},
  "links": {
    "login": "https://iam.test.cloud.ibm.com/cloudfoundry/login/ys0-us-south",
    "passcode": "https://identity-1.us-south.iam.test.cloud.ibm.com/cloudfoundry/login/ys0-us-south/passcode",
    "passwd": "/forgot_password",
    "register": "/create_account",
    "uaa": "https://uaa.us-south.cf.dev.cloud.ibm.com"
  },
  "prompts": {
    "passcode": [
      "password",
      "One Time Code (Get one at https://identity-1.us-south.iam.test.cloud.ibm.com/cloudfoundry/login/ys0-us-south/passcode )"
    ],
    "password": "[PRIVATE DATA HIDDEN]",
    "username": [
      "text",
      "Email"
    ]
  },
  "timestamp": "2020-05-19T16:32:18+0000",
  "zone_name": "uaa"
}

Email:
andrew-edgar commented 4 years ago

Here is the V7 login trace ...

➜  ~ /usr/local/Cellar/cf-cli@7/7.0.0/bin/cf -v login
API endpoint: https://api.us-south.cf.dev.cloud.ibm.com
REQUEST: [2020-06-25T09:30:30-06:00]
GET / HTTP/1.1
Host: api.us-south.cf.dev.cloud.ibm.com
Accept: application/json
User-Agent: cf/7.0.0+b67291ee4.2020-06-17 (go1.13.8; amd64 darwin)

RESPONSE: [2020-06-25T09:30:31-06:00]
HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Type: application/json;charset=utf-8
Date: Thu, 25 Jun 2020 15:30:31 GMT
Server: nginx
X-Backside-Transport: OK OK
X-Content-Type-Options: nosniff
X-Global-Transaction-Id: 196c55655ef4c31701e16dc2
{
  "links": {
    "app_ssh": {
      "href": "ssh.us-south.cf.dev.cloud.ibm.com:2222",
      "meta": {
        "host_key_fingerprint": "9b:bf:b2:24:6a:ea:00:f0:77:96:3e:d7:42:67:ec:fc",
        "oauth_client": "ssh-proxy"
      }
    },
    "bits_service": null,
    "cloud_controller_v2": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v2",
      "meta": {
        "version": "2.148.0"
      }
    },
    "cloud_controller_v3": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3",
      "meta": {
        "version": "3.83.0"
      }
    },
    "credhub": null,
    "log_cache": {
      "href": "https://log-cache.us-south.cf.dev.cloud.ibm.com"
    },
    "log_stream": {
      "href": "https://log-stream.us-south.cf.dev.cloud.ibm.com"
    },
    "logging": {
      "href": "wss://doppler.us-south.cf.dev.cloud.ibm.com:443"
    },
    "login": {
      "href": "https://iam.test.cloud.ibm.com/cloudfoundry/login/ys0-us-south"
    },
    "network_policy_v0": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/networking/v0/external"
    },
    "network_policy_v1": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/networking/v1/external"
    },
    "routing": null,
    "self": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com"
    },
    "uaa": {
      "href": "https://uaa.us-south.cf.dev.cloud.ibm.com"
    }
  }
}

REQUEST: [2020-06-25T09:30:31-06:00]
GET /v3 HTTP/1.1
Host: api.us-south.cf.dev.cloud.ibm.com
Accept: application/json
User-Agent: cf/7.0.0+b67291ee4.2020-06-17 (go1.13.8; amd64 darwin)

RESPONSE: [2020-06-25T09:30:31-06:00]
HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Type: application/json; charset=utf-8
Date: Thu, 25 Jun 2020 15:30:31 GMT
Referrer-Policy: strict-origin-when-cross-origin
Server: nginx
X-Backside-Transport: OK OK
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Global-Transaction-Id: 196c55655ef4c31702517650
X-Permitted-Cross-Domain-Policies: none
X-Runtime: 0.005768
X-Xss-Protection: 1; mode=block
{
  "links": {
    "apps": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/apps"
    },
    "audit_events": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/audit_events"
    },
    "buildpacks": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/buildpacks"
    },
    "builds": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/builds"
    },
    "deployments": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/deployments"
    },
    "domains": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/domains"
    },
    "droplets": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/droplets"
    },
    "environment_variable_groups": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/environment_variable_groups"
    },
    "feature_flags": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/feature_flags"
    },
    "info": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/info"
    },
    "isolation_segments": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/isolation_segments"
    },
    "organization_quotas": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/organization_quotas"
    },
    "organizations": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/organizations"
    },
    "packages": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/packages"
    },
    "processes": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/processes"
    },
    "resource_matches": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/resource_matches"
    },
    "roles": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/roles"
    },
    "routes": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/routes"
    },
    "security_groups": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/security_groups"
    },
    "self": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3"
    },
    "service_brokers": {
      "experimental": true,
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/service_brokers"
    },
    "service_instances": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/service_instances"
    },
    "service_offerings": {
      "experimental": true,
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/service_offerings"
    },
    "service_plans": {
      "experimental": true,
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/service_plans"
    },
    "space_quotas": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/space_quotas"
    },
    "spaces": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/spaces"
    },
    "stacks": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/stacks"
    },
    "tasks": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/tasks"
    },
    "users": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/users"
    }
  }
}

Warning: Your targeted API's version (3.83.0) is less than the minimum supported API version (3.85.0). Some commands may not function correctly.

REQUEST: [2020-06-25T09:30:31-06:00]
GET / HTTP/1.1
Host: api.us-south.cf.dev.cloud.ibm.com
Accept: application/json
User-Agent: cf/7.0.0+b67291ee4.2020-06-17 (go1.13.8; amd64 darwin)

RESPONSE: [2020-06-25T09:30:32-06:00]
HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Type: application/json;charset=utf-8
Date: Thu, 25 Jun 2020 15:30:32 GMT
Server: nginx
X-Backside-Transport: OK OK
X-Content-Type-Options: nosniff
X-Global-Transaction-Id: 196c55655ef4c3180072f811
{
  "links": {
    "app_ssh": {
      "href": "ssh.us-south.cf.dev.cloud.ibm.com:2222",
      "meta": {
        "host_key_fingerprint": "9b:bf:b2:24:6a:ea:00:f0:77:96:3e:d7:42:67:ec:fc",
        "oauth_client": "ssh-proxy"
      }
    },
    "bits_service": null,
    "cloud_controller_v2": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v2",
      "meta": {
        "version": "2.148.0"
      }
    },
    "cloud_controller_v3": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3",
      "meta": {
        "version": "3.83.0"
      }
    },
    "credhub": null,
    "log_cache": {
      "href": "https://log-cache.us-south.cf.dev.cloud.ibm.com"
    },
    "log_stream": {
      "href": "https://log-stream.us-south.cf.dev.cloud.ibm.com"
    },
    "logging": {
      "href": "wss://doppler.us-south.cf.dev.cloud.ibm.com:443"
    },
    "login": {
      "href": "https://iam.test.cloud.ibm.com/cloudfoundry/login/ys0-us-south"
    },
    "network_policy_v0": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/networking/v0/external"
    },
    "network_policy_v1": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/networking/v1/external"
    },
    "routing": null,
    "self": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com"
    },
    "uaa": {
      "href": "https://uaa.us-south.cf.dev.cloud.ibm.com"
    }
  }
}

REQUEST: [2020-06-25T09:30:32-06:00]
GET /v3 HTTP/1.1
Host: api.us-south.cf.dev.cloud.ibm.com
Accept: application/json
User-Agent: cf/7.0.0+b67291ee4.2020-06-17 (go1.13.8; amd64 darwin)

RESPONSE: [2020-06-25T09:30:32-06:00]
HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Type: application/json; charset=utf-8
Date: Thu, 25 Jun 2020 15:30:32 GMT
Referrer-Policy: strict-origin-when-cross-origin
Server: nginx
X-Backside-Transport: OK OK
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Frame-Options: SAMEORIGIN
X-Global-Transaction-Id: 196c55655ef4c31802030692
X-Permitted-Cross-Domain-Policies: none
X-Runtime: 0.005032
X-Xss-Protection: 1; mode=block
{
  "links": {
    "apps": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/apps"
    },
    "audit_events": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/audit_events"
    },
    "buildpacks": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/buildpacks"
    },
    "builds": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/builds"
    },
    "deployments": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/deployments"
    },
    "domains": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/domains"
    },
    "droplets": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/droplets"
    },
    "environment_variable_groups": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/environment_variable_groups"
    },
    "feature_flags": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/feature_flags"
    },
    "info": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/info"
    },
    "isolation_segments": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/isolation_segments"
    },
    "organization_quotas": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/organization_quotas"
    },
    "organizations": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/organizations"
    },
    "packages": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/packages"
    },
    "processes": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/processes"
    },
    "resource_matches": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/resource_matches"
    },
    "roles": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/roles"
    },
    "routes": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/routes"
    },
    "security_groups": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/security_groups"
    },
    "self": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3"
    },
    "service_brokers": {
      "experimental": true,
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/service_brokers"
    },
    "service_instances": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/service_instances"
    },
    "service_offerings": {
      "experimental": true,
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/service_offerings"
    },
    "service_plans": {
      "experimental": true,
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/service_plans"
    },
    "space_quotas": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/space_quotas"
    },
    "spaces": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/spaces"
    },
    "stacks": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/stacks"
    },
    "tasks": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/tasks"
    },
    "users": {
      "href": "https://api.us-south.cf.dev.cloud.ibm.com/v3/users"
    }
  }
}

REQUEST: [2020-06-25T09:30:32-06:00]
GET /login HTTP/1.1
Host: uaa.us-south.cf.dev.cloud.ibm.com
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Connection: close
User-Agent: cf/7.0.0+b67291ee4.2020-06-17 (go1.13.8; amd64 darwin)

RESPONSE: [2020-06-25T09:30:33-06:00]
HTTP/1.1 200 OK
Cache-Control: no-store
Content-Language: en-US
Content-Type: application/json;charset=UTF-8
Date: Thu, 25 Jun 2020 15:30:33 GMT
Set-Cookie: [PRIVATE DATA HIDDEN]
Strict-Transport-Security: max-age=31536000
X-Backside-Transport: OK OK
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-Global-Transaction-Id: 196c55655ef4c31801e16e42
X-Xss-Protection: 1; mode=block
{
  "app": {
    "version": "74.18.0"
  },
  "commit_id": "git-metadata-not-found",
  "entityID": "login.us-south.cf.dev.cloud.ibm.com",
  "idpDefinitions": {},
  "links": {
    "login": "https://iam.test.cloud.ibm.com/cloudfoundry/login/ys0-us-south",
    "passwd": "/forgot_password",
    "register": "/create_account",
    "uaa": "https://uaa.us-south.cf.dev.cloud.ibm.com"
  },
  "prompts": {
    "password": "[PRIVATE DATA HIDDEN]",
    "username": [
      "text",
      "Email"
    ]
  },
  "timestamp": "2020-05-19T16:32:18+0000",
  "zone_name": "uaa"
}

Email:
reidmit commented 4 years ago

Collecting some links that I believe are related:

Similar regression in v6: https://github.com/cloudfoundry/cli/issues/1820 The commit where we fixed that issue, I think: https://github.com/cloudfoundry/cli/commit/7d19e9437b904c1a67f337593de4acd53844eb53

Gerg commented 4 years ago

The fix for this issue will be in the next release of v7.

andrew-edgar commented 4 years ago

Why is this "closed" already when it has not even been released?

I think issues should not get closed until they are available! closing them should be my trigger to test it and I cannot yet test it.