Configure Manage External Authentications In WHM
WHM has the ability to allow your users to log in to their cPanel accounts using External Authentications. Services provided by Facebook, Google and PayPal to name a few. This would be considered safer than allowing your users to use a password to log in.
Allowing External Authentications on your WHM server. You mitigate the risk of a user having their password compromised. So, in turn, preventing a website hack.
Once a user has linked their cPanel account to the External Authenticator. We would advise any user using this service to change their cPanel password. Use the in-built password configurator. Just keep that password safe in case it’s ever needed.
Configure Manage External Authentications
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.
Add API Details
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 should 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 and 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. 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
Free SSL Certificates from places like cPanel or Let's Encrypt are great. When Let's Encrypt first introduces free SSL Certificates …
SWAP is a memory type that Linux NVMe VPS Servers use to process requests. Memory will be held in SWAP …
The Error: last request failed: [AUTH] Authentication failed error can be caused by a range of things. It could be …