Configuring the Switching Providers for Account Lookup

In the web.config, navigate to the system.web » membership » providers element. Verify that the realProviderName attributes are set to "switcher" as per Enable Switching Providers.

Adding the new providers by domain

Configure the S4S security providers by adding the following elements:


  •  To the sitecore » switchingProviders » membership element (the order is not important)
<provider providerName="salesforceAccountLookupProvider" storeFullNames="false" wildcard="%" domains="salesforceAL" />


  • To the sitecore » switchingProviders » roleManager element (the order is not important)
<provider providerName="salesforceAccountLookupProvider" storeFullNames="false" wildcard="%" domains="salesforceAL" />


  • To the sitecore » switchingProviders » profile element (it must come before the "sql" definition in this group)
<provider providerName="salesforceAccountLookupProvider" storeFullNames="false" wildcard="%" domains="salesforceAL" />

Example

<switchingProviders>
      <membership>
        <provider providerName="sql" storeFullNames="true" wildcard="%" domains="*"/>
		<provider providerName="salesforceAccountLookupProvider" storeFullNames="false" wildcard="%" domains="salesforceAL"/>
      </membership>
      <roleManager>
        <provider providerName="sql" storeFullNames="true" wildcard="%" domains="*"/>
		<provider providerName="salesforceAccountLookupProvider" storeFullNames="false" wildcard="%" domains="salesforceAL"/>
      </roleManager>
      <profile>
        <!-- This line must go before the SQL provider which can handle all requests -->
		<provider providerName="salesforceAccountLookupProvider" storeFullNames="false" wildcard="%" domains="salesforceAL"/>
        <provider providerName="sql" storeFullNames="true" wildcard="%" domains="*"/>
      </profile>
    </switchingProviders>