The Authorization Provider page allows staff users to configure alternate means to register for or log in to a Community Portal.

Salesforce will only allow one email per user. Therefore, a unique email must be used for each federated login. Otherwise an Error page will display notifying the user that the authentication attempt has failed.

Configure Twitter as an Authorized Provider:

  1. Navigate to https://developer.twitter.com

  2. Sigh in to an existing Twitter account. 

    1. If no Twitter account currently exists, create a new account. Confirm the new Twitter account via email on file. 

    2. If this is for implementation purposes, use the customer's preferred Twitter account. In Tools, click Manage Your Apps. Next, select the app and in Application Settings, click Keys and Access Tokens. Click the Create my Access Token. Navigate to Salesforce to create an Auth. Provider.

  3. Click Create New App button to return the Create an application form.

  4. Type the requested information, for the Developer Agreement checkbox, check the Yes, I agree, and click Create your Twitter application.

  5. Populate the desired fields below:

    1. Required Fields:

      • Name-This is used to attribute the source of a tweet and in user-facing authorization screens. 32 characters max.

      • Description-Displays in user-facing authorization screens. Between 10 and 200 characters max.

      • Website-The application's publicly accessible home page, where users can go to download, make use of, or find out more information about the application. This fully-qualified URL is used in the source attribution for tweets created by the application and will be shown in user-facing authorization screens.

    2. Optional Fields:

      • Callback URL

  6. Click Keys and Access Tokens and click Create my Access Token.

  7. Open up a new tab and navigate to Salesforce environment.

  8. The next step will be to create an Authorized Provider in Salesforce.

  9. Click] Setup.

  10. Under the Administer heading, expand Security Controls and click Auth. Providers.

  11. On the Auth. Providers page, click the New button.

  12. From the Provider Type picklist, select Twitter.

    1. Populate the desired fields below:

      1. Required Fields:

        • Name- Enter a unique, identifying name for the Auth. Provider.

        • URL Suffix- Enter a value to use in the callback URL. This field will default to the value entered in the Name field.

        • Consumer Key- Paste the Client ID returned in earlier in the process.

        • Consumer Secret- Paste the Client Secret  returned in earlier in the process.

      2. Optional Fields:

        • Default Scopes- Enter the level of access that this user has to that profile, i.e., read-only access or profile email openid. Otherwise, the field will default to Salesforce.

        • Custom Error URL- Enter a URL to display a custom error message.

        • Custom Logout URL- Enter a URL to display a logout error message

        • Registration Handler- Enter "TwitterAuthRegHandler" into the lookup.

        • Execute Registration As- Enter the name of a full user in the system associated to a Role. Cannot be a Community Portal User.

        • Portal- Leave as "None."

        • Icon URL- Enter a secure URL to the icon, or choose from among Google's sample icons.

      The Auth. Provider record populates the Client Configuration fields:

      • Test-Only Initialization URL

      • Single Sign-On Initialization URL

      • Existing User Linking URL

      • OAuth-Only Initialization URL

      • Callback URL

  13. Copy the Callback URL and navigate to the Twitter Developers Console tab in the browser window, click the Settings tab.

  14. Paste the Callback URL into the Callback URL field and click Update Settings.

  15. Next step is to Enable Social Login.

  16. Click Setup.

  17. In the Quick Find Field, search Sites. 

  18. Under the Digital Experiences heading, select All Sites.

  19. Click Workspaces link next to the intended Community Portal. This will open a new Community Portal Workspaces tab. 

  20. The the My Workspaces section, click Administration.

  21. From the left nav, click Login & Registration.

  22. From the Login & Registration page, check the Google checkbox and click Save.

  23. Open a new tab, navigate to the Communities app in Salesforce, and select the Sites tab.

  24. Navigate to the Community Portal's related Site record and click Edit.

  25. Select the Auth Provider Default Account using the lookup.

  26. Copy the Single Sign-On Initialization URL generated during the Auth. Provider configuration and paste it into the Twitter Login URL field.

  27. Authenticated and unauthenticated users can log in to the Community Portal through their LinkedIn accounts.