salesforce how to login with javascript without security token

0 votes
I used the following resource to create a custom login page for my application.

http://brianpeddle.com/2011/06/06/building-a-custom-salesforce-login/

However, if the user is in an untrusted network, this approach necessitates the creation of a security token for each user, which changes when the user resets their password.

How can I make it such that numerous users can log in from this page? The only thing I can think of right now is adding an extra input box where the user may enter the security token along with their login and password. I'm curious if Salesforce allows javascript to dynamically collect security tokens for each user.
Mar 30, 2022 in SalesForce by surbhi
• 3,810 points
874 views

1 answer to this question.

0 votes

OAuth2 is a security protocol that allows Salesforce users to access their data without having to enter their username and password into an untrusted application or deal with nefarious token management.

A guide on how to install OAuth2 for web sites is available from Salesforce. If you've never worked with OAuth2, it can be tough to get started, but there are lots of resources accessible.

I would also recommend testing the use of OAuth2 with something like Firefox's RESTClient plugin (or something similar) to get a feel for authenticating against Salesforce.

Hope this helps!

For more, check out the Salesforce Training here!

answered Apr 1, 2022 by CoolCoder
• 4,400 points

Related Questions In SalesForce

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,810 points
807 views
0 votes
1 answer

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

you are not passing the parameterValues, use ...READ MORE

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

Salesforce Apex SingleEmailMessage with Template to User not contact

Im trying to send an email in ...READ MORE

Feb 28, 2022 in SalesForce by surbhi
• 3,810 points
2,785 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,400 points
1,390 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,731 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
728 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
476 views
0 votes
2 answers

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 535 views
0 votes
1 answer

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

You are not passing the parameterValues, use ...READ MORE

answered Mar 9, 2022 in SalesForce by CoolCoder
• 4,400 points
564 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,400 points
1,187 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