Allow Hotspot User to Log In with Social Media Account

The Hotspot Web Portal function allows network administrator can set up the router as a Hotspot provider with web authentication and let users log in with their social media accounts, such as Facebook and Google. In the following, we demonstrate how to set up the Hotspot Web Portal with Facebook login method.

Vigor Router Setup

1. Make sure the router is connecting to the Internet.

a screenshot of Online Status

2. Go to Hotspot Web Portal >> Profile Setup, click on an available index to edit the profile.

a sreenshot of DrayOS Hotspot

3. There are a few steps to set up.

  1. First, check Enable this profile
  2. Give comments
  3. Select Various Hotspot Login for Portal Method. Then choose Login with Facebook at Login Methods.
  4. Select HTTPS for Captive Portal URL. This configuration is necessary to comply with the Facebook policy.
  5. Enter the APP ID and APP Secret. (Visit here for Facebook, and here for Google to see how to register for an APP ID)
  6. click Save and Next.
a screenshot of DrayOS Hotspot

4. Choose the background of the portal page, customize the logo and color, and click Save and Next.
TIPS: Use the step Icon on the top of the page to skip to the step you want, the router will save your settings automatically.

a screenshot of DrayOS Hotspot

5. Customize the descriptions on the login page, then click Save and Next.

a screenshot of DrayOS Hotspot

6. You can set the Whitelist for the profile to allow specific clients to bypass the portal and access the Internet or certain websites without login.

7. Set up the Expired Time After Activation and Landing Page After Activation that Hotspot clients will see after they login successfully. Finally, select the interfaces to which you would like this hotspot profile apply, then click Finish to save the setting. 

8. Then the Hotspot setup is finished. You may click Preview to check the login page.

Hotspot Clients Login

9. Now, when clients connect to the selected router interface and try to access the Internet, they will be redirected to "portal.draytek.com".

NOTE:If there's no certificate installed, due to security concerns, the browser might warn that it cannot verify server identity, the clients would need to tap "Continue" before they can proceed to portal.draytek.com.

10. Tap on a login method, and it will open the social media login page. Enter the social media accounts and password to log in.

11. If the credentials are correct, the client will be redirected to the landing page and be able to access the Internet afterward

s screenshot of Hotspot landing page
Check User Login History

12. The network administrator can plug a USB disk to the router to record the basic information of the users who connect to the Wi-Fi and log in with their social media accounts. Go to Hotspot Web Portal >> Users Information >> Database Setup and enable database.

It will be listed on User Info tab.

13. Click on User’s name, and you are able to get more login information about the user.
 a. Use Log Out Device to kick this user.
 b. Use Clear to delete the information of this user.

Troubleshooting:

1. The client might not be able to access "portal.draytek.com" if this domain name is resolved by a DNS server on LAN. If so, set up LAN DNS to make sure the domain name will be resolved to the router's LAN IP.

2. If you get a blank page after clicking "Login with Facebook," it's probably that the APP ID or APP Secret is incorrect. Please confirm the entry again then try again.

DrayTek vigor Routers support hotspot web portals, enabling them to function as captive portal gateways. This means that internet access is provided only to clients who authenticate successfully. Vigor Routers support various login methods, including Facebook and Google, enabling hotspot users to authenticate via their social media accounts.

This article demonstrates how to set up the Hotspot Web Portal using the Google login method on a DrayOS5 Router.

Check Internet Connection

Ensure the router is connected to the Internet.

Create a Google APP ID for the Hotspot Web Portal

Click here to see how to create an APP ID for Google.

Create a Hotspot Profile

Go to IAM / Hotspot Web Portal. In the Profile Setup tab, click +Add to create a hotspot profile.

Login Method
  • Enter a profile name.
  • Select Various Login as the portal method.
  • Enable Google, then enter the Google APP ID and Google APP Secret created in the previous step.
Login Page Setup(Optional)
  • Customize the hotspot web portal page.
More Options(Optional)
  • Apply the quota policy profile in the login method we use. (To access these settings, go to the IAM / Hotspot Web Portal and click on +Add in the Quota Policy Profile menu.)
  • Enter the desired website as the landing page.

Click Apply to save the settings.

Apply the Hotspot Profile in IAM Policies

Go to IAM / IAM Policies. In the Access Policies tab, click +Add to define an access policy.

  • Enter a name for this access policy.
  • Select Guest Hotspot as the access control mode.
  • Choose the hotspot profile created previously.
  • Set the login session lifetime of each user.

Click Apply to save the settings.

In the Apply Policies to LAN tab, apply the access policy to the hotspot login interface.

Click Apply to save the settings.

Verify Hotspot Client Login

Connect a device to the interface configured for the hotspot login. The router should automatically redirect the device to the hotspot login page.

Click Sign in with Google and log in with your Google account.

After the login, the device will be redirected to the landing page and granted internet access.

Published On:2017-11-07 

Share

Was this helpful?