Salesforce Lightning - Login Failure In Staging

0 votes

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.

Mar 8, 2022 in SalesForce by surbhi
• 3,820 points
676 views

1 answer to this question.

0 votes
https://test.salesforce.com versus https://login.salesforce.com. Even if you use the same password, the token may be different, or the password may have expired.

In setup, do you see anything in the user's login history? It's difficult to make educated guesses about these topics. Do you receive the same outcome when you use the SOAP API or OAuth2? Or maybe just basic SF Data Loader?

Maybe admin disabled logging in from generic addresses in Setup -> My Domain, requiring you to go to https://mydomain—mysandboxname.my.salesforce.com/...?

Maybe the admin had everyone use Single Sign-On, and you can't use your SF username and password anymore.

There may be IP addresses that are restricted or login hours that have been defined.
answered Mar 9, 2022 by CoolCoder
• 4,420 points

Related Questions In SalesForce

0 votes
1 answer

Json response to be deserialized in Apex salesforce lightning

Because some fields in Apex Salesforce are ...READ MORE

answered Mar 2, 2022 in SalesForce by surbhi
• 3,820 points
3,530 views
0 votes
0 answers

Can we create new Search Layout in Lightning SalesForce?

I am working on the Search Layout, ...READ MORE

Mar 4, 2022 in SalesForce by surbhi
• 3,820 points
492 views
0 votes
1 answer

Cannot login to Salesforce Sandbox via python API

Set domain='test' and generate a new token ...READ MORE

answered Mar 1, 2022 in SalesForce by CoolCoder
• 4,420 points
1,819 views
0 votes
0 answers

How to take test.salesforce.com while deployment as salesforce login url for api connection logic app?

In logic app i'm using salesforce connector after deployment ...READ MORE

Mar 1, 2022 in SalesForce by surbhi
• 3,820 points
1,034 views
+2 votes
2 answers

Salesforce Interview questions

Here are some questions very important for ...READ MORE

answered Jan 11, 2019 in Career Counselling by Suresh
• 720 points
3,342 views
0 votes
1 answer

How to connect to salesforce from tableau?

Hi, follow these steps to connect to Salesforce: 1. ...READ MORE

answered Mar 25, 2019 in Tableau by Cherukuri
• 33,030 points
1,017 views
0 votes
1 answer

Power BI - Salesforce

Hi, Follow below steps: 1. Go to Data source. 2. ...READ MORE

answered Mar 25, 2019 in Power BI by Cherukuri
• 33,030 points
710 views
0 votes
2 answers

What is the best training for Salesforce ADM-201 Exam?

Hi @Vardhan, I took Edureka's Salesforce Online Training, ...READ MORE

answered Jun 3, 2021 in Others by Jaya
• 140 points

edited Dec 22, 2021 by Soumya 707 views
0 votes
1 answer

How to Update RecordTypeId field in Lightning record form in salesforce?

A critical action that messes everything up ...READ MORE

answered Mar 3, 2022 in SalesForce by CoolCoder
• 4,420 points
3,316 views
0 votes
1 answer

how to create a custom login page in salesforce.com?

Here are a few things to consider: Is ...READ MORE

answered Apr 6, 2022 in SalesForce by CoolCoder
• 4,420 points
1,434 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP