-
Notifications
You must be signed in to change notification settings - Fork 942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cf login command waits for user input after failed login with PASSWORD_LOCKED response #3352
Open
4 tasks done
Comments
Hi, I tried to reproduce this issue and unable to. I'm CLI 8.9.0 as well on MAC. The prompt returns as shown below.
Can you provide more info? |
That is strange. It still happens exactly the same for me ![]() with The IDP in question is the BTP Default IDP, SAP ID. |
Here's the last request output with CF_TRACE=1
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
When running cf login with supplied user and pw, and the pw is currently locked the login fails, but the CLI call does not exit. Instead, it presents a "Password: " prompt to the user.
When using this in a pipeline environment, this causes the task to hang until timed out, which is not useful.
Even when using this interactively, it makes no sense to prompt for a PW if the user is locked.
What happened
User got locked and pipelines got hung up until timeout.
Expected behavior
On failed login, cf login should immediately exit with a non-zero exit code.
Exact Steps To Reproduce
Lock your user e.g. by entering wrong PW sufficiently (5 times on SAP ID Service) , then run cf login
[note: verbose does not add anything here, so using regular output]
Provide more context
The text was updated successfully, but these errors were encountered: