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 in SalesForce by surbhi
• 3,810 points
191 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 by CoolCoder
• 4,360 points

Related Questions In SalesForce

0 votes
1 answer

Json response to be deserialized in Apex salesforce lightning

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

answered Mar 2 in SalesForce by surbhi
• 3,810 points
1,781 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 in SalesForce by surbhi
• 3,810 points
144 views
0 votes
0 answers

Cannot login to Salesforce Sandbox via python API

I am using the python3.7.2 module simple-salesforce==0.74.2 and I ...READ MORE

Mar 1 in SalesForce by surbhi
• 3,810 points
490 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 in SalesForce by surbhi
• 3,810 points
397 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
2,021 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,050 points
360 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,050 points
239 views
0 votes
1 answer

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

Hi @Vardhan, I took Edureka's Salesforce Training that covers all ...READ MORE

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

edited Dec 22, 2021 by Soumya 264 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 in SalesForce by CoolCoder
• 4,360 points
1,628 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 in SalesForce by CoolCoder
• 4,360 points
450 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