cancel
Showing results for 
Search instead for 
Did you mean: 

Not Able to run cf login

rupambecs999
Explorer
0 Kudos

When I am running cf login and giving sudo cf login -a {API}" -o {Org} -s dev -u {user name} -p {password}

it is showing {"error":"invalid_grant","error_description":"User authentication failed: INVALID_AUTHORIZATION_HEADER_LENGTH"}

But using --sso it is working but I need without sso flag how to login by giving the password. I need this for CI CD

Accepted Solutions (1)

Accepted Solutions (1)

JürgenAdolf
Product and Topic Expert
Product and Topic Expert

Hello,

Probably the user has a password in Universal ID, but none / not the correct one in SAP ID Service. See https://help.sap.com/docs/BTP/65de2977205c403bbc107264b8eccf4b/7a37d66c2e7d401db4980db0cd74aa6b.html...

See the Note at the end of pt. 4 -> For more information, see SAP Note 3085908

Set your password in IDS newly.

luanmatos
Explorer
0 Kudos

Hello juergen.adolf ,

Thank you very much. I managed to resolve my issue by resetting my password. This note from SAP solved my problem.

Thanks!

Answers (1)

Answers (1)

fjcvsap
Participant
0 Kudos

rupambecs999 Did you find a solution? The Sap Note 3085908 is being updated.

juergen.adolf I got the same trouble and I can not deploy with CI CD, any help?

Thak you

artiedsmdw2
Discoverer
0 Kudos

I have the same problem. CI/CD Service executes cf login, which does not work since I upgraded to Universal ID. I have reset my specific S-User password, but I get INVALID_OTP_CODE as error when using cf login. Manually using cf login --sso works.

Update: The problem resulted from 2-factor authentication. There should be a fix for this problem e.g. app passwords.