cancel
Showing results for 
Search instead for 
Did you mean: 

cf login auth failure

thomasrobertz
Discoverer
2,726

Hello,

I get an authentication failure when trying to login with cf:

{"error":"invalid_grant","error_description":"User authentication failed: PASSWORD_LOCKED"}

(To me the mention of a grant and a locked password seems to indicate an administrative issue)

With credentials: I get the above error.

With SSO: I get the error "Sorry, we could not authenticate you. Try again." on the identity provider login page (https://accounts.sap.com/saml2/idp/sso...).

I also get the error "Authentication failed. " when trying to login to Cloud Foundry from BAS.

I am able to obtain a working SSO token from to the general domain (https://api.cf.us10.hana.ondemand.com)

but not from my endpoint (https://api.cf.us10-001.hana.ondemand.com)

cf version 6.53.0+8e2b70a4a.2020-10-01 on Ubuntu

Do I have to configure something? Can anybody help or do you need further info?

AlexGourdet
Product and Topic Expert
Product and Topic Expert

Thank you for visiting SAP Community to get answers to your questions.

As you're looking to get most out of your community membership, please consider include a profile picture to increase user engagement & additional resources to your reference that can really benefit you:

I hope you find this advice useful, and we're happy to have you as part of SAP Community!

All the best,

Alex

svengloeckner
Explorer
0 Kudos

I have exactly the same problem. No solution? That means I'm not able to use SAP BTP from CF CLI.

ron2023btp
Discoverer
0 Kudos

Same issue, using a MAC Air. CF version V7. Getting authentication error, later PASSWORD LOCKED. Not able to use CLI to manage CF. Saw it working on mac in Udemy though. Interested if there is a solution.

View Entire Topic
oliver_kalkofen3
Newcomer
0 Kudos

I found a solution for me. I was also not able to log in with "cf login". Then I tried resetting my password(s), which did not help. Then I tried "cf login --sso", and that did not work out in Internet Explorer and Chrome (login fails). Then, I tried with Firefox and it worked!

oksel
Explorer
0 Kudos

look below

oksel
Explorer

I am experiencing this issue in CI/CD. Im logged onto cf in SAP Business application studio using sso, but once i push my changes, the changes goes to github, but the CI/CD build fails during stage release. Raw Response: {"error":"invalid_client","error_description":"{\"error\":\"invalid_grant\",\"error_description\":\"User authentication failed: Unauthorized\"}"}

Im not sure how to provide credentials for cf in CI/CD when the only way i know which works is using SSO passcode... Do you know what to do?

RK0008
Explorer
0 Kudos

I also have similar issue where i am trying to deploy application from github through CI/CD pipeline

error is failing acceptance test when the job run for CI/CD  service.

Error Code: 401
Raw Response: {"error":"invalid_client","error_description":"{\"error\":\"invalid_grant\",\"error_description\":\"User authentication failed.\"}"}

although i repeatedly changed CLI password and used same command to login manually to CLI ,its working fine but when its  running from job its repeatedly failing at acceptance test.

Not sure how to solve this ( since i am using BTP trail account ) can anyone help here any BTP admin experts please
acceptance test failining.png