Contents
Additional configuration for Cloud-Based Controllers
Adding tplinkcloud.com as an authorized domain
Configuring Google authentication in the controller
Configuring the HTTPS certificate and portal settings
Introduction
Google Portal Authentication allows users to authenticate using their Google accounts before accessing a network managed by an Omada Controller.
This article provides step-by-step instructions for configuring Google OAuth in Google Cloud and integrating it with Omada Local and Cloud-Based Controllers.
Requirements
- Omada Controller
- Google OAuth API
Prerequisites
The Google authentication feature is based on the Google OAuth API. To meet the requirements of the Google OAuth API, when using Google authentication on the Local Controller, you need to have a domain name and a trusted certificate for that domain. Ensure that client devices can resolve the domain name to the IP address of the Local Controller through DNS. For specific requirements of the domain name, please refer to the following Google documentation.
Configuration
The following sections explain how to configure Google OAuth in Google Cloud and enable Google authentication on an Omada Controller. Additional requirements for Local and Cloud-Based Controllers are identified where applicable.
Configuring Google OAuth API
Google authentication requires Google OAuth credentials. If you have not configured Google OAuth credentials, follow the steps below.
Step 1. Sign in to the Google Cloud Console. Click Select a project, then select New project.

Step 2. Enter a Project name, then select Create.

Step 3. Click the menu icon (☰) in the upper-left corner, navigate to APIs & Services, then select OAuth consent screen.

Step 4. On the left menu, select OAuth consent screen.

Step 5. Select Get Started.

Step 6. Under App information, enter an App name and select a User support email, then click Next.

Step 7. Under Audience, select External, then click Next.

Step 8. Under Contact information, enter a developer contact email address. You can add multiple addresses if needed. Click Next.

Step 9. Under Finish, review the Google API Services: User Data Policy, select the acknowledgment checkbox, then click Continue and Create.

Step 10. In the left menu, select Data Access, then click Add or remove scopes. Select the userinfo.email and openid scopes, then click Update.
Note: OAuth scopes define which account information an application is authorized to access. The scopes that need to be added are openid and userinfo.email. These two scopes are non-sensitive and are used by Google authentication to query Google for the user's unique identifier and email. The Controller will not retain the above user's personal information.

Step 11. Click Save to apply the updated scopes.

Step 12. Click the menu icon (☰) in the upper-left corner, navigate to APIs & Services, then select Credentials.

Step 13. Click Create credentials, then select OAuth client ID.

Step 14. Under Application type, select Web application, then enter a name in the Name field. Under the Authorized redirect URIs heading, enter the following URI, depending on your deployment:
For a Local Controller (Software or Hardware), enter the following URI in Authorized redirect URIs: https://{YourDomainName}:8843/portal/sociallogin/auth. Replace {YourDomainName} with the domain name configured for your Local Controller. Select Create.
For a Cloud-Based Controller hosted in the US East 1 region, use the following URI: https://use1-api-omada-controller.tplinkcloud.com:443/portal/sociallogin/auth. The redirect URI may differ depending on the Cloud-Based Controller's region.
To find the region of your controller, check the URL of the controller when connected to the controller UI. Replace use1 with the region identifier of your Cloud-Based Controller.
Note: The web client will use this URI to redirect back to the Controller after completing the login on Google to finish the subsequent authentication process.

After clicking Create, the Client ID and Client Secret will be displayed in a pop-up window. The OAuth client has been created successfully.

Step 15. In the left menu, select Branding. Under App domain, enter the Application home page, Application privacy policy link, and Application terms of service link. Add the domains used by these URLs to Authorized domains, then click Save.

Step 16. In the left menu, select Audience, then click Publish app to change the application's publishing status from Testing to In production.

Additional configuration for Cloud-Based Controllers
Complete the following additional Google OAuth configuration for Cloud-Based Controllers.
Adding tplinkcloud.com as an authorized domain
Step 1. In your Google Cloud project, navigate to Branding. Scroll down to find Authorized domains. Add tplinkcloud.com as an Authorized domain. Select Save.

Configuring Google authentication in the controller
After configuring Google OAuth in Google Cloud, enable Google authentication in the Omada Controller using the generated Client ID and Client Secret. The following Google Portal configuration steps are identical for Local and Cloud-Based Controllers.
Step 1. In Site view, navigate to Network Config > Portal, then click Create New Portal.

Step 2. Under the Basic tab, configure Portal Name and SSID & Network, then review the displayed Portal URL.
Note: The Portal URL field displays the URL used to access the Portal authentication page.

Step 3. Under the Authentication tab, select Google as the Authentication Type. Enter the Client ID and Client Secret generated in Google Cloud. Review and configure the Design tab as needed, then click Apply to save the settings.

Configuring the HTTPS certificate and portal settings
Configure a trusted HTTPS certificate and the portal hostname to support Google authentication. The portal hostname must match the domain name used in the Google OAuth redirect URI.
Import the HTTPS certificate
Step 1. In Global View, navigate to Settings > System Settings > HTTPS Certificate. Click Import, select the certificate file, and enter the corresponding Keystore Password. Click Save, then restart the controller to apply the certificate.

For more information about HTTPS certificates, refer to: How to Configure HTTPS Certificate to Avoid “Untrusted Certificate” Error - Business Community.
Configure the portal hostname and HTTPS redirection
Step 2. In Global View, navigate to Settings > System Settings > Controller Access. Under Portal Access, set Portal URL to Manual and enter the appropriate portal hostname. Enable HTTP Redirect to HTTPS (Portal), then click Save to apply the settings.
Note: Restart the controller for changes to HTTP Redirect to HTTPS (Portal) to take effect.

Verification
After completing the configuration, connect a client device to the configured network and open the Portal authentication page. Sign in using a Google account and verify that authentication completes successfully.
Google authentication URLs may vary by country or region. If authentication fails because certain addresses are inaccessible, identify the blocked addresses using the browser address bar or developer tools (F12). Configure pre-authorization for these addresses as described in the following section.
Configuring pre-authorization
Complete the following steps only if pre-authorization is required.
Step 1. The Pre-Authorization Access Entry list can be found in Site View, Network Config, Portal then Access Control.

Step 2. Enable Pre-Authorization and click Add. Under Type, select IP Range or URL and configure the required entry. To add multiple entries, click Add New Pre-Authentication Access Entry. Click Save to save the entries, then click Apply to complete the configuration.

Conclusion
Google authentication is now configured on the Omada Controller, allowing users to authenticate through the captive portal using their Google accounts.
Verify that the OAuth credentials, authorized redirect URI, and any necessary pre-authorization settings are configured correctly to ensure successful authentication.
To learn more about each function and configuration, please visit Support Home to download or check the manual for your product.
QA
Q1: What should I enter in the Application home page, Application privacy policy link, and Application terms of service link fields in Google Cloud?
A1: These fields should contain URLs belonging to the organization providing the network service. They inform users who is providing the service and how their Google account information is handled.
The Omada Controller only facilitates the Google authentication process and does not operate the customer's OAuth application or network service. Therefore, customers should use their own website, privacy policy, and terms of service rather than TP-Link's.
Note: For testing or demonstration purposes, temporary values may be used. For production deployments, customers should provide their own valid URLs that meet Google's requirements.
Q2: Can I configure Google authentication on a Cloud-Based Omada Controller?
A2: Yes. Google authentication can be configured on both Local and Cloud-Based Omada Controllers. Cloud-Based Controllers require the appropriate Google OAuth redirect URI and authorized domain configuration.
Q3: What redirect URI should I use for Google authentication?
A3: The redirect URI depends on the controller deployment:
- Local Controller: https://{YourDomainName}:8843/portal/sociallogin/auth
- Cloud-Based Controller (US East 1): https://use1-api-omada-controller.tplinkcloud.com:443/portal/sociallogin/auth
For Cloud-Based Controllers, the redirect URI may vary by region. Ensure that the URI matches the controller's deployment.
Q4: Why does Google display a redirect_uri_mismatch error?
A4: This error typically occurs when the redirect URI used during authentication does not match the URI configured in Google Cloud. Navigate to APIs & Services > Credentials, open your OAuth client, and verify the Authorized redirect URI.
Q5: Do I need a domain name and SSL certificate for Google authentication?
A5: For Local Controllers, you need a domain name with a trusted SSL certificate. The domain must also resolve to the Local Controller's IP address. Cloud-Based Controllers use the applicable TP-Link cloud domain for authentication.
Q6: Why does the Google login page fail to load when users connect to the guest network?
A6: Some Google authentication services may be inaccessible before portal authentication is completed. Test the login process and identify any blocked addresses using the browser address bar or developer tools. Add the necessary addresses to the Controller's Pre-Authorization Access Entry list.
Q7: Which Google OAuth scopes are required?
A7: Configure the openid and userinfo.email scopes under Google Auth Platform > Data Access. These scopes allow the authentication process to obtain the user's Google account identifier and email address.
Q8: Why can only certain Google accounts authenticate through the portal?
A8: Check whether the OAuth application is in testing mode. Google may restrict access to accounts registered as test users. Review the application's Audience settings and publishing status in Google Cloud.
Q9: Where can I find the Client ID and Client Secret for Google authentication?
A9: In Google Cloud, navigate to APIs & Services > Credentials and select your OAuth client. Use the Client ID and Client Secret when configuring Google authentication under the Omada Controller's Portal authentication settings.
Q10: How can I verify that Google authentication is working correctly?
A10: Connect a client device to the SSID or network associated with the configured Portal. Open the Portal page, select Google authentication, and sign in using a Google account. Verify that authentication completes successfully and the client can access the internet.