How to Configure Google Authentication on an Omada Controller

Knowledgebase
Configuration Guide
12-04-2026
41229
This Article Applies to

Contents

Introduction

Requirements

Prerequisites

Configuration

Configuring Google OAuth API

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

Verification

Configuring pre-authorization

Conclusion

QA

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.

Google Cloud Console showing the Select a project menu and New project option.

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

Google Cloud New Project page showing the project name field and Create button.

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

Google Cloud navigation menu showing APIs & Services and OAuth consent screen.

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

Google Cloud APIs & Services page showing OAuth consent screen in the left navigation menu.

Step 5. Select Get Started.

Google Auth Platform overview showing the Get started button.

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

Google OAuth app information page showing the app name and user support email fields.

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

Google OAuth Audience page showing External selected and the Next button.

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

Google OAuth Contact information page showing the developer email field and Next button.

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

Google OAuth Finish page showing the user data policy acknowledgment, Continue, and Create buttons.

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.

Google OAuth Data Access page showing the openid and userinfo.email scopes selected.

Step 11. Click Save to apply the updated scopes.

Google OAuth Data Access page showing the configured scopes and Save button.

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

Google Cloud navigation menu showing APIs & Services and Credentials.

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

Google Cloud Credentials page showing Create credentials and 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.

Google OAuth client setup showing the application name and authorized redirect URI fields.

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

Google OAuth client creation dialog showing the generated Client ID and Client Secret.

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.

Google OAuth Branding page showing the application URLs, authorized domains field, and Save button.

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

Google OAuth Audience page showing the Testing publishing status and Publish app button.

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.

Google OAuth Branding page showing tplinkcloud.com in the Authorized domains field.

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.

Omada Controller Portal page showing the Create New Portal button.

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.

Omada Controller Basic portal settings showing portal name, network selection, and portal URL.

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.

Omada Controller Authentication tab showing Google selected as the authentication type.

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.

Omada Controller HTTPS Certificate settings showing certificate import and keystore password fields.

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.

Omada Controller Portal Access showing Manual Portal URL selected and HTTPS redirection enabled.

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.

Omada Controller Access Control page showing the Pre-Authorization Access section.

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.

Omada Controller dialog showing an IP range entry for pre-authorization access.

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.

Please Rate this Document

Related Documents