将目标设置为 api.cloudfoundry.com 后,我无法登录“cf login”。
我确定我的凭据,因为我可以登录 login.cloudfoundry.com。
可能和新版本有关吗?
我已经看到您有时要求cf login -t output
这样做,这是我的:更改密码*****
Authenticating. --->
request: post https://uaa.cloudfoundry.com/oauth/token
headers: content-typeapplication/x-www-form-urlencoded;charset=utf-8acceptapplication/json;charset=utf-8authorizationBasic Y2Y6
body: grant_type=password&username=bertyno%40yahoo.es&password=******
...<---
response: 401
headers: content-typeapplication/json;charset=utf-8servernginxkeep-alivetimeout=20dateMon, 13 May 2013 12:19:13 GMTtransfer-encodingchunkedwww-authenticateBasic realm="UAA/client", error="unauthorized", error_description="No client with requested id: cf"cache-controlno-storeconnectionclose
body: {"error":"unauthorized","error_description":"No client with requested id: cf"}
--->
request: post https://uaa.cloudfoundry.com/oauth/authorize?redirect_uri=https%3A%2F%2Fuaa.cloudfoundry.com%2Fredirect%2Fcf&client_id=cf&response_type=token&state=2b7fbfd964323e8c639da0157c00435b
headers: content-typeapplication/x-www-form-urlencoded;charset=utf-8acceptapplication/json;charset=utf-8
body: username=bertyno%40yahoo.es&password=******&source=credentials
...<---
response: 401
headers: pragmano-cache, no-cachecontent-languageen-UScontent-typeapplication/json;charset=UTF-8servernginxkeep-alivetimeout=20dateMon, 13 May 2013 12:19:14 GMTtransfer-encodingchunkedcache-controlno-cache, no-store, no-cache, no-store, max-age=0expiresThu, 01 Jan 1970 00:00:00 GMT, Thu, 01 Jan 1970 00:00:00 GMTconnectionclose
body: {"error":"invalid_client","error_description":"Bad client credentials"}
... FAILED
谢谢。