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 in SalesForce by surbhi
• 3,810 points
30 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.
answered Apr 1 by CoolCoder
• 4,360 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 in SalesForce by surbhi
• 3,810 points
87 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 in SalesForce by surbhi
• 3,810 points
62 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 in SalesForce by surbhi
• 3,810 points
176 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
92 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
1,827 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,010 points
286 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,010 points
172 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 201 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 in SalesForce by CoolCoder
• 4,360 points
116 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
66 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP