You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug and the command you saw an issue with
I was performing the following command from a script:
cf login -a "url" -u "username" -p "password" -o "org" -s "space"
I intentionally passed an incorrect username/password to test that scenario.
What happened
CF responded "Credentials were rejected, please try again." and then prompted for Password>
Expected behavior
Because -u and -p was passed I expect the program to terminate with an error exit code.
To Reproduce
Steps to reproduce the behavior; include the exact CLI commands and verbose output:
run cf login like shown above but use a valid URL for your environment.
Provide more context
Windows CMD prompt / C# Process.Start()
6.46.1+4934877ec.2019-08-23
version of the CC API Release you are on Unknown
Note: As of January 2019, we no longer support API versions older than CF Release v284/CF Deployment v1.7.0 (CAPI Release: 1.46.0 (APIs 2.100.0 and 3.35.0).
Note: In order to complete the v7 beta cf CLI in a timely matter, we develop and test against the latest CAPI release candidate. When v7 cf CLI is generally available, we will start supporting official CC API releases again.
The text was updated successfully, but these errors were encountered:
Hi @chrpai thanks for creating this issue. For scripting purposes, have you tried using cf auth instead? That command does not prompt interactively and is thus more optimal for scripting purposes.
It does appear cf auth behaves better. But now I'd have to do an api, auth and target command where login does it all in one shot. I'd assume that all of cf is good for scripting?
cf auth does require you to be more explicit: you'll need to target (this won't be required if you have already set your target previously) and set orgs and spaces separately. We could consider adding flags to that command but we won't be able to take on that work in the near future.
Please fill out the issue checklist below and provide ALL the requested information.
CF_TRACE=1
to help debug the issue.Describe the bug and the command you saw an issue with
I was performing the following command from a script:
cf login -a "url" -u "username" -p "password" -o "org" -s "space"
I intentionally passed an incorrect username/password to test that scenario.
What happened
CF responded "Credentials were rejected, please try again." and then prompted for Password>
Expected behavior
Because -u and -p was passed I expect the program to terminate with an error exit code.
To Reproduce
Steps to reproduce the behavior; include the exact CLI commands and verbose output:
run cf login like shown above but use a valid URL for your environment.
Provide more context
Note: As of January 2019, we no longer support API versions older than CF Release v284/CF Deployment v1.7.0 (CAPI Release: 1.46.0 (APIs 2.100.0 and 3.35.0).
Note: In order to complete the v7 beta cf CLI in a timely matter, we develop and test against the latest CAPI release candidate. When v7 cf CLI is generally available, we will start supporting official CC API releases again.
The text was updated successfully, but these errors were encountered: