- DrayOS 5, imported, captive_portal, social_login, google_login, hotspot_auth, iam_policies
Allow Hotspot User to Log In with Social Media Account (DrayOS5)
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.
