cancel
Showing results for 
Search instead for 
Did you mean: 

Login to Cloud Foundry Environment API Endpoint

heiko_kst
Explorer

Hi

I am trying to login to the Cloud Foundry Environment (API Endpoint https://api.cf.eu10.hana.ondemand.com) both using the CF CLI and the CF Eclipse Plugin. In both cases the login fails.

CF CLI: Credentials were rejected, please try again.
RESPONSE: [2017-12-22T09:58:15+01:00]
HTTP/1.1 401 Unauthorized
...
Www-Authenticate: Basic realm="UAA/client", error="unauthorized", error_description="Bad credentials"

CF Eclipse Plugin: Wrong email or password - 403 (Forbidden) - 403 Access token denied.

I am using the same credentials (email, password) as for login to my SAP Cloud Platform (trial) account / SAP Cloud Platform cockpit.

Is the Cloud Foundry Environment using a different account / different credentials?

Thanks and best regards

Heiko

View Entire Topic
kevinliu
Product and Topic Expert
Product and Topic Expert

I had exactly the same issue. if you have to enter your scp credential, something went wrong, and no matter what credential you provide, it won't work. This is how I got around:

1. Delete the existing Cloud Foundry trial account, and log out of all SCP accounts

2. log back in your SCP cockpit, and recreate a CF trial account. Note where the account is created - by default it should be Europe (Frankfurt), corresponding to eu10

3. go back to WebIDE workspace preferences, select Cloud Foundry

4. choose https://api.cf.eu10.hana.ondemand.com as the API endpoint (or any other url correponding to item 2 in your case

now it shows the right org and space:)

Hope this helps.