Logging into Salesforce through the Web Interface

You Shall Not Pass!
There are a number of ways to authenticate with the Force.com Platform and I thought I’d create a few lightning posts documenting my findings for each.
The first method in this series will be logging in through the web interface. There are 2 sites that you would hit in order to authenticate:
- http://login.salesforce.com – for Developer Edition and Production Orgs
- http://test.salesforce.com – for all other sandboxes
If you’re not able to log in with a username and password that you know is correct then the first port of call is to check that you’re using the correct URL above. I’ve seen many developers forget to hit ‘enter’ after swapping “test” for “login” (or vice versa) and then being puzzled because their credentials still didn’t work so don’t forget (okay by “many developers” I actually mean me).
There’s also a neat trick that’s quite well-known and can be used to log you in automatically based on bookmarked URLs. All you need to do is append 2 URL parameters onto the appropriate environment HTTPS URL e.g. I could create a bookmark with the URL https://test.salesforce.com?un=wes@cloud-corporation.com&pw=abc123 where:
- un = your username for that environment
- pw = your password for that username
Pro-tip: Make sure that the URL is using HTTPS.
If you exclusively use Chrome you might want to use the Force.com Logins plug-in which will save you some hassle.
As I use IE, Firefox and Chrome, I use LastPass for managing my long, long list of user credentials for all the different Salesforce.com orka.
Patrick Brinksma
August 16, 2011 at 1:34 am
Things get rather more complicated when you activate the “My Domain” feature in SFDC. For example, our production org is at appirio.my.salesforce.com. When you explicitly log out of SFDC, you’re redirected to the login page, which looks like the screen shot you’ve shown here, but with a URL of https://appirio.my.salesforce.com. If you enter credentials for another org, they’ll fail – inexplicably, at first, until you bang your head against the desk awhile and finally notice the URL. You’ll need to manually point yourself back to http://login.salesforce.com to get back on track. Tricky.
Glenn Weinstein
August 16, 2011 at 3:27 pm
Thanks for the tip!
Wes
August 16, 2011 at 3:43 pm
There’s another way to login if you have a valid sessionID from the API, which is actually what the IDE does when you hit “show in salesforce web”:
https://.salesforce.com/secur/frontdoor.jsp?sid=&retURL=
Chris Peterson (@ca_peterson)
September 30, 2011 at 12:22 am
Very true, thanks very much!
Wes
October 2, 2011 at 4:47 pm
Hi, I used this https://.salesforce.com/secur/frontdoor.jsp?sid=&retURL= format, with a valid accessToken from iOS API, but im showing a login page saying ” You have attempted to access a page that requires login”. Please help.
Thanks
Kishore
November 5, 2013 at 8:25 pm
[…] Logging Into Salesforce Through the Web Interface @wesnolte Various ways to authenticate with the Force.com platform. jQuery(document).ready(function($) { window.setTimeout('loadTwitter_1832()',1000);window.setTimeout('loadLinkedin_1832()',1000);window.setTimeout('loadGoogle1_1832()',1000);window.setTimeout('loadPinterest_1832()',1000); }); function loadTwitter_1832(){ jQuery(document).ready(function($) { $('.dd-twitter-1832').remove();$.getScript('http://platform.twitter.com/widgets.js'); }); } function loadLinkedin_1832(){ jQuery(document).ready(function($) { $('.dd-linkedin-1832').remove();$.getScript('http://platform.linkedin.com/in.js'); }); } function loadGoogle1_1832(){ jQuery(document).ready(function($) { $('.dd-google1-1832').remove();$.getScript('https://apis.google.com/js/plusone.js'); }); }function loadPinterest_1832(){ jQuery(document).ready(function($) { $.getScript('http://assets.pinterest.com/js/pinit.js'); }); }Tags: #df11, Dreamforce, Force.com, Salesforce, Salesforce.com ← No Cloudup Today (8-19-2011) Cloudup 8-26-2011 → Related Posts Delivered Innovation + Sencha = Party, Event Style. Cloudup 6-24-2011 Bessemer’s Top 10 Laws for Being “SaaS-y” Force Feed 9-26-2011 Comments Leave a ReplyWant to join the discussion? Feel free to contribute! […]
Force Feed 8-22-2011 | Delivered Innovation Blog
July 17, 2012 at 8:49 pm