function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rajiv1903Rajiv1903 

How to Single Sign-On to Salesforce Sites through Auth. Providers?

Hello,

 

     Is there a way in Salesforce to achieve Single Sign-on to Sites using Facebook credentials without requiring an external federated server?

 

I am aware that Salesforce provides "Federated single sign-on using SAML" through which Single Sign-on using Facebook credentials can be achieved. This method however requies one to setup a complex external OpenAM federated server.

 

Is there any way one can use the Auth Providers to allow a Customer Portal User to login to Sites through his Facebook credentials?

 

I am currently able to configure Auth Provides to allow Customer Portal Users to login to the Customer Portal through their Facebook credentials. However I am unable to find an easy way to do this to the Sites. Any help regarding this is much appreciated. Thanks in advance.

 

-Rajiv

Best Answer chosen by Admin (Salesforce Developers) 
wwuwwu

If you've already configured Auth Providers for portals, then you should be able to append ?site={your_site} to the SSO Initialization URL of the same Auth Provider to get logged into the Site, i.e. 

https://login.salesforce.com/services/auth/sso/orgID/URLsuffix?site=https%3A%2F%2Fmysite.force.com%2FSiteLogin

 

Here's a link for more info: http://login.salesforce.com/help/doc/en/sso_provider_addl_params_site.htm#sso_provider_addl_params_site.xml

All Answers

wwuwwu

If you've already configured Auth Providers for portals, then you should be able to append ?site={your_site} to the SSO Initialization URL of the same Auth Provider to get logged into the Site, i.e. 

https://login.salesforce.com/services/auth/sso/orgID/URLsuffix?site=https%3A%2F%2Fmysite.force.com%2FSiteLogin

 

Here's a link for more info: http://login.salesforce.com/help/doc/en/sso_provider_addl_params_site.htm#sso_provider_addl_params_site.xml

This was selected as the best answer
Rajiv1903Rajiv1903

Thanks Willy, your suggested approach works but with a small modification.

 

The site parameter when added to the SSO initialization URL did not take me to my site linked to the portal, instead the control just stops at the Customer Portal home.

 

I created a VF page tab and made it the default tab for Customer Portal Users. This VF Page would just redirect to the same portal but now with the "site" parameter appended. Since the salesforce and facebook sessions are both active, the control is just taken to the site directly.

 

On a different note, is there anyway to customize the customer portal login and the account link confirm screens that salesforce prompts? These two screen now are not inline with the UI theme of our site...

 

Thanks again

-Rajiv

wwuwwu

You should be able to customize the customer portal login page.  If it's on a site, you should be able to make a fully customized login page built as a VF page w/ the SiteLogin component.  And if it's a normal portal user login page, you have limited customizations (I believe you can upload a logo and control some colors??).  But you won't be able to affect the look of the account linking page.

 

<safe harbor>

In the upcoming Chatter Communities, you'll be able to control the branding/colors of both the default login page as well as make a custom login page, and it'll also apply to oauth pages/account linking pages/change password pages.

</safe harbor>