Configure an Authentication Provider for Community Hub
Administrators can walk through a collection of steps to configure an authentication provider and enable it for use in Community Hub.
Before you get started setting up an authentication provider, there will be a few steps where you will need to enter the name of an Apex class, select a user, or another action. Please keep this information in mind:
- When setting up Facebook, in
User Info Endpoint URL
, enterhttps://graph.facebook.com/me?fields=name,email
. - In
Custom Error URL
, enter the the full path to your Community Hub Welcome page. Example:http://www.mycommunityhub.com/NC__Login
. - In
Registration Handler
, enterSocialRegistrationHandler
. - In
Execute Registration As
, enter the full name of the administer user who is theSite Contact
for Community Hub. - In
Icon URL
, enter the path to an icon to display as a button on the Welcome page. This icon applies to Community Hub only, and does not appear on the login page for your Salesforce org. Users click the button to log in with the associated authentication provider. You can specify a path to your own image, or copy the URL for one of the sample icons into the field. An icon size of 64px by 64px is recommended.
- Configure an authentication provider.
- Configure a Facebook Authentication Provider (external)
Configure a Twitter Authentication Provider (external)
After configuring a Twitter authentication provider, you must follow steps found in the "Request a User's Email Address" section. Once your request is accepted, be sure to selectRequest email address from users
under your app permissions on apps.twitter.com.- Configure a Google Authentication Provider (external)
- Configure a LinkedIn Authentication Provider (external)
- Configure an Amazon Authentication Provider (external)
- Configure a Salesforce Authentication Provider (external)
- Configure a Microsoft® Access Control Service Authentication Provider (external)
- Configure a Janrain Authentication Provider (external)
- Configure an OpenID Connect Authentication Provider (external)
- Create a Custom External Authentication Provider (external)
- Enable the authentication provider in Community Hub.
- From Setup, enter
All Communities
in theQuick Find
box, then select All Communities. - Click Manage next to the community name.
- Click Administration | Login & Registration.
- In the "Login" section, in
External users can login or register with
, select the authentication provider you just configured. - Click Save.
- From Setup, enter
When testing social sign-on in Community Hub, be sure to do so in another browser session so there are no login conflicts.