Switching Providers

Switching Providers

Switching Providers

  • Used to get all security requests from the higher level of the application, define which provider(s) should handle the request and redirect a request to that (those) provider(s)
  • This Sitecore feature is disabled by default
  • Must be configured and enabled in order to support multiple providers, such as Active Directory

Switching Providers Configuration

  • In the <membership> element in <system.web> section of web.config, find the provider named sitecore and set its realProviderName attribute to switcher
  • In the <roleManager> element in <system.web> section of web.config, find the provider inside named sitecore and set its realProviderName attribute to switcher

Configuration Settings


<switchingProviders>
      <membership>
        <provider providerName="xml" storeFullNames="true" wildcard="%" domains="extranet,default" />
        <provider providerName="sql" storeFullNames="true" wildcard="%" domains="*" />
      </membership>
      <roleManager>
        <provider providerName="xml" storeFullNames="true" wildcard="%" domains="extranet,default" />
        <provider providerName="sql" storeFullNames="true" wildcard="%" domains="*" />
      </roleManager>
      <profile>
        <provider providerName="sql" storeFullNames="true" wildcard="%" domains="*" />
      </profile>
    </switchingProviders>