简体   繁体   中英

Salesforce Lightning - Login Failure In Staging

I'm trying to login into my staging Salesforce lightning, by I get the following result:

INVALID_LOGIN: Invalid username, password, security token; or user locked out.

I use the 'jsForce' library version 2 , with the right serverUrl, username and password+token combination.

Note that when I do exactly the same for my production Salesforce environment - I succeed .

Any suggestion to why there's a difference between staging and production - would be helpful.

"exactly the same" to prod is probably bad idea, https://test.salesforce.com vs https://login.salesforce.com ;) And even if you have same password - the token could be different, password could have expired.

Do you see anything in the user's login history in setup? It's hard to guess these things. Do you get same result if you try SOAP API login or OAuth2? Or even plain old SF Data Loader?

  • Maybe admin went to Setup -> My Domain and disabled logging in from generic address, forcing you to go https://mydomain--mysandboxname.my.salesforce.com/.. . ?
  • Maybe admin enforced Single Sign-On on everybody and you can't use SF username & pass anymore.
  • There might be restricted IP addresses or login hours set

Found a Solution: when logging to Salesforce using the jsForce libray, only the 'loginUrl' parameter works as expected (as opposed to 'serverUrl' for production).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM