Configure Manage External Authentications In WHM
WHM has the ability to allow your users to log in to their cPanel accounts using External Authentications like the services provided by Facebook, Google and PayPal to name a few. From a security point of view, this would be considered safer than allowing your users to use a password to log in. We all know users like to use the same password for multiple sites and by allowing External Authentications on your WHM server you mitigate the risk of a user having their password compromised and their account broken into.
Once a user has linked their cPanel account to the External Authenticator we would advise any user using this service change their cPanel password using the inbuilt password configurator then just keep that password safe in case it’s ever needed.
Configure Manage External Authentications
To get started login to WHM and under the Security Center settings click the “Manage External Authentications” and finally the “Configure” link at the top. Here you can see a full list of External Authenticators you can set up. We will concentrate on the FaceBook authenticator.
Click the “Configure” link next to the FaceBook Authenticator options and scroll right to the bottom. You can make changes to the buttons at the top if you wish but for this article, we are going to skip this. You will notice the three sections we are interested in;
1) Redirect URIs
2) App ID
3) App Secret
Before proceeding further ensure you have an SSL Certificate configured on your Hostname. You can follow our guide on this located here to complete that.
Create A New Facebook App
Navigate to the Facebook Developers site, https://developers.facebook.com/ log in and under “My Apps” click create a new App, Fill out the details.
Next, in your App under “Settings” on the left click “Basic” and on the right your App details will appear. Notice at the top you have “App ID” and “App Secret” Proceed to fill out all of the information on this page.
Get your App ID and App Secret, These details need to be placed in the bottom of the Facebook configuration settings in WHM. Save all the changes on this page.
Next, on the left, you will see “Products” click the plus symbol and on the top of the page on the right, you will see “Let people log in with their Facebook account” Click the “Set-Up” button. Click “Web” then fill out your server details. You must add the details like https://your_host_name.your-domain.com AND https://yourdomain.com Click continue on the next steps until you come to step 6 which is then complete.
Under “Products” you will now see the “Facebook Login” section, click “Settings” Under the “Valid OAuth Redirect URIs” section enter the URLs that are displayed in WHM, the “Redirect URIs”, enter them one-by-one then click save at the bottom.
At the top of the page make you App live by sliding the toggle to the right. Now, Assuming you added your App ID and App Secret in WHM and saved them as instructed in the previous steps, navigate to your server’s cPanel login screen and hit the Facebook login button.
Here you will be asked to Log into Facebook then transferred back to the server to Login to your local cPanel account. This connects your cPanel account with your Facebook account and only needs to be completed once.
That’s the process for setting up Facebook logins with a cPanel and WHM server complete. You can repeat the steps on different sites like PayPal and Google to configure more services
How was this article? – Configure Manage External Authentications In WHM
More from cPanel
About cPanel ModSecurity And How To Enable ModSecurity ModSecurity is a widely used tool to detect and prevent intrusion in your …
Updating WHMCS When Using WHMCS Secure Credentials New versions of WHMCS are released often and when you are updating WHMCS it's …