简体   繁体   English

Salesforce Lightning - 登台登录失败

[英]Salesforce Lightning - Login Failure In Staging

I'm trying to login into my staging Salesforce lightning, by I get the following result:我正在尝试登录我的登台 Salesforce 闪电,我得到以下结果:

INVALID_LOGIN: Invalid username, password, security token; INVALID_LOGIN:用户名、密码、安全令牌无效; or user locked out.或用户被锁定。

I use the 'jsForce' library version 2 , with the right serverUrl, username and password+token combination.我使用'jsForce' 库版本 2以及正确的 serverUrl、用户名和密码+令牌组合。

Note that when I do exactly the same for my production Salesforce environment - I succeed .请注意,当我对生产 Salesforce 环境执行完全相同的操作时 - 我成功了

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. "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已到期。

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?如果您尝试 SOAP API 登录或 OAuth2,您会得到相同的结果吗? Or even plain old SF Data Loader?甚至是普通的旧 SF 数据加载器?

  • Maybe admin went to Setup -> My Domain and disabled logging in from generic address, forcing you to go https://mydomain--mysandboxname.my.salesforce.com/.. .也许管理员去了设置 - >我的域并禁用从通用地址登录,迫使你到 go https://mydomain--mysandboxname.my.ZA8FF6C9514C35C853B3503/8.2534.com ? ?
  • Maybe admin enforced Single Sign-On on everybody and you can't use SF username & pass anymore.也许管理员对每个人都强制执行单点登录,您不能再使用 SF 用户名和密码。
  • There might be restricted IP addresses or login hours set可能设置了受限的 IP 地址或登录时间

Found a Solution: when logging to Salesforce using the jsForce libray, only the 'loginUrl' parameter works as expected (as opposed to 'serverUrl' for production).找到了解决方案:使用 jsForce 库登录到 Salesforce 时,只有“loginUrl”参数按预期工作(而不是“serverUrl”用于生产)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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