6
  1. authenticate a customer portal using SOAP login() method and LoginScopeHeader
  2. receive SessionID in LoginResult object
  3. How can I use SessionID to redirect the user's browser to the customer portal and log them in?

I've tried frontdoor.jsp, but it's not working.

Is there a better way to do this?

1 Answer 1

8

This discussion forum thread suggests that you can do this with

https://<instance>.salesforce.com/secur/frontdoor.jsp?sid=<sessionId>&orgId=<orgId>&portalId=<portalId>

Change <instance> to the relevant instance, e.g. na1, and substitute in the relevant IDs.

2
  • Does this works with communities ? I can't see a clear way to get community id. I tried copying it from the Setup > Communities > All Communities and "Manage" link. My URL after SOAP API login comes out to be : cs21.salesforce.com/secur/… but this is not working out for me. +metadaddy any suggestions ? Commented Mar 31, 2015 at 15:33
  • 1
    From Knowledge Article Number: 000193348: "Note that frontdoor.jsp login is not supported for Salesforce Communities. It has been restricted due to security risk. For seamless login from customer's website to Salesforce Communities, suggested approach is to use SAML based Single Sign-On ."
    – metadaddy
    Commented Mar 31, 2015 at 15:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .