how to create a custom login page in salesforce com

0 votes
is it possible to create a custom login page in salesforce.com? if so can anyone provide help to create the page and the validations part?
Apr 5, 2022 in SalesForce by surbhi
• 3,820 points
1,454 views

1 answer to this question.

0 votes

Here are a few things to consider:

Is it possible that this page will be hosted on your site?

Is this going to be used by a number of different salesforce organisations?

To obtain a session id, one option is to use the login() API call. If the login fails, you'll be able to detect it and notify the user appropriately.

Elevate your career as a Salesforce Platform Developer with the industry-leading Salesforce Platform Developer1 Certification.

After that, the user must be redirected to the "frontdoor.jsp" page, which has the following format:

  • https://[host].salesforce.com/secur/frontdoor.jsp?sid=[session_id]&retURL=[start_page]

Where:

  • [host] - varies by organization. Some that I've seen are na1, na2, .... If you are only building this for 1 organization, you could hard-code this value. If you are building the for multiple organizations, you could parse it from the serverUrl property of the returned LoginResult.
  • [session_id] - get this from the returned LoginResult
  • [start_page] - this is optional but can be used to "deep link" a user to a page after they've logged in.

Edit: 2014-08-25

Salesforce now officially supports the frontdoor.jsp method of login described in this answer (link). In addition, session_ID tokens can be obtained from any of the following sources:

  1. The access_token from an OAuth authentication.Note that one of the scopes specified when you create a Connected App must be web or full.
  2. The LoginResult returned from a SOAP API login() call
  3. The Apex UserInfo.getSessionId()
answered Apr 6, 2022 by CoolCoder
• 4,420 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,820 points
1,062 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,820 points
981 views
0 votes
1 answer

How to create Web to Lead in Salesforce

You have a couple of options: You can ...READ MORE

answered Apr 6, 2022 in SalesForce by CoolCoder
• 4,420 points
566 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,349 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,393 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,036 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
754 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 726 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,420 points
817 views
0 votes
1 answer

How to log into a salesforce.com sandbox?

My user account was created after the ...READ MORE

answered Mar 15, 2022 in SalesForce by CoolCoder
• 4,420 points

edited Jun 19, 2023 by Khan Sarfaraz 1,505 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