Loading
Salesforce now sends email only from verified domains. Read More
Identify Your Users and Manage Access
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Control Your Authentication Provider User Experience

          Control Your Authentication Provider User Experience

          When you set up single sign-on (SSO) with an authentication provider for your Salesforce Experience Cloud site, use the expid request parameter to deliver different experiences to users.

          Required Editions

          Available in: Lightning Experience and Salesforce Classic
          Available in: Enterprise, Performance, Unlimited, and Developer Editions
          User Permissions Needed
          To view the settings: View Setup and Configuration
          To edit the settings:

          Customize Application

          AND

          Manage Auth. Providers

          For example, you set up a Facebook authentication provider and configure SSO with your site as the relying party. You want to send Spanish-speaking users through a different registration process than Italian-speaking users. So you modify the registration handler and add the expid parameter to your SSO client configuration URL. The registration handler can now detect whether a user comes from the Spanish or Italian version of Facebook. When a Spanish-speaking user signs up for your site with their Facebook credentials, the registration handler records the user’s minimum age. If the user comes from the Italian version of Facebook, the handler doesn’t.

          To deliver different user experiences, add the expid parameter to a client configuration URL.

          • For the Single Sign-On Initialization URL, Salesforce provides the experience specified by the expid parameter after they log in with their third-party credentials.
          • For the Existing User Linking URL, the Continue to Salesforce link on the confirmation page leads to the experience specified by the expid parameter.
          Example
          Example

          Here’s an example of an expid parameter added to the Single Sign-On Initialization URL, where:

          • site-url is the URL for the site.
          • auth_provider is the name of the authentication provider.
          • expid=sp indicates that the user comes from the Spanish version of the website.
          site-url/services/auth/sso/auth_provider/?expid=sp
          Note
          Note In Spring ’18, we optimized authentication provider URLs to improve performance and reduce the number of redirects. To make sure that you have the correct URLs, from Setup, enter Auth. in the Quick Find box, then select Auth. Providers. Click the name of your authentication provider, and find the client configuration URLs in the Salesforce Configuration section.
           
          Loading
          Salesforce Help | Article