Cancel
Showing results for 
Search instead for 
Did you mean: 

One Time Code

Siemens Valued Contributor Siemens Valued Contributor
Siemens Valued Contributor

Hi,

 

I am trying to connect to my cloud foundry MindSphere account through the command line, and when I specify the API I am asked to enter a "one time code". This line also provides me with a URL to get the code, which takes me to a SAP log in page, however my details are rejected and I am unable to log in. 

 

Has anyone had this issue before or have any ideas?

1 REPLY

Re: One Time Code

Valued Contributor
Valued Contributor

Hello @gburslem - here's a quick review of how we've done it.  Some of this might be known but want to make sure we're all following the same process:

1. From command line entered: cf login -sso -a https://api.cf.mindsphere.io, this will prompt for one time code

2. Go to https://login.cf.mindsphere.io/passcode

3. Do not enter username and password in that screen, you have to click the MindSphere developer login link below the submit button (this part confuses many)

4. Enter your 20 character password

5. Enter your 2 factor authentication code

6. Passcode will show on the next screen

7.  I usually type this into the command line window...you won't see any cursor moving, but it is entered.  Hit return and you should then be prompted for tenant and space(s)

 

Let me know if that works.