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 in SalesForce by surbhi
• 3,810 points
126 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.

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 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
152 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
74 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 in SalesForce by CoolCoder
• 4,360 points
49 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
508 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,872 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
302 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
182 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 215 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
160 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 in SalesForce by CoolCoder
• 4,360 points
32 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