cancel
Showing results for 
Search instead for 
Did you mean: 

Cloud Foundry Login Error

anmolsinha01
Explorer

SAP HANA CLOUD - SAP Business Application Studio

when i am creating a project from template i am not able to login in Cloud Foundry, nor i am able to login from Cloud Foundry: target > services.i am new to this HANA Cloud can you please help me how to solve this error.Every time i try to log in with my login credential i am not able to login it give me this Authentication failed Error
can anyone tell me how to do cf login
...
Authentication failed: API endpoint: https://api.cf.us10.hana.ondemand.com Authenticating... Password: API endpoint: https://api.cf.us10.hana.ondemand.com API version: 3.113.0 Not logged in. Use 'cf login' or 'cf login --sso' to log in. FAILED

0 Kudos

Hi bro , I have the same problem, did you get any solution?

Accepted Solutions (1)

Accepted Solutions (1)

Please try the Step 2 from Tutorial Configure SAP Business Application Studio Development for SAP HANA Development | Tutorials for SAP D...

If login fails, try the following:

Open a terminal by going to Terminal > New Terminal

In the terminal type the following:

cf login --sso

You will see a prompt:

API endpoint: https://api.cf.us10.hana.ondemand.com

Temporary Authentication Code ( Get one at https://login.cf.us10.hana.ondemand.com/passcode 😞

Then, open the URL (ends with /passcode) in browser. You will be prompted to authenticate.

After authentication the browser will display a "Temporary Authentication Code".

Copy the code. You may use the copy icon.

Paste that code at the prompt in the terminal.

If authentication is successful, you will see:

Authenticating...
OK

If prompted to select an Org, type the number of the Org from the list. Do the same for Space.

anmolsinha01
Explorer
0 Kudos

yes i got it yesterday i was new in this field so its been difficult to find solution so..Anyways i got the solution so thank you very much for your help dinu.pavithran

Answers (1)

Answers (1)

dvankempen
Product and Topic Expert
Product and Topic Expert
anmolsinha01
Explorer

Thankyou Very muchdenys.kempen

kjyothiraditya
Participant
0 Kudos

Hi denys.kempen dinu.pavithran tobias.griebe ,

I tried Terminal to generate SSO. It opens the URL https://login.cf.us10.hana.ondemand.com/passcode. It logins into this endpoint however my endpoint is https://api.cf.us10-001.hana.ondemand.com/ and login to this fails with both password and SSO. Seems like passwords are not synced. Could anyone please help me as well ?

Regards,

Aditya

0 Kudos

Please post a new question when you are not commenting on the original question. This will help community offer better support.

You need to set the api for CLI first with

cf api https://api.cf.us10-001.hana.ondemand.com/

Then the cf login -sso will print the correct URL for login.