How to Setup Google Oauth portal Authentication in OC 200 Hardware Controller ?

How to Setup Google Oauth portal Authentication in OC 200 Hardware Controller ?

How to Setup Google Oauth portal Authentication in OC 200 Hardware Controller ?
How to Setup Google Oauth portal Authentication in OC 200 Hardware Controller ?
Ayer - last edited Hace 11 horas
Model: OC200  
Hardware Version: V1
Firmware Version: 1.36.7 Build 20250707 Rel.72474

Hey everyone,

I’m currently setting up an Google captive portal for my TP-Link Omada OC200 (v5.15.24.21) controller and ran into a problem configuring Google OAuth 2.0 for user authentication.

Here’s my setup:

  • Omada hardware controller (OC200) running locally

  • External portal server option enabled in Omada

  • My portal hosted locally (using local IP address)

  • Trying to integrate Google OAuth 2.0 login on the portal page

Issue:
When configuring Google OAuth, it requires a callback/redirect URL. Since my Omada controller and portal are hosted locally (with a private IPv4 address), Google rejects the redirect URI because it’s not public (e.g., http://192.168.x.x/callback).

So I’m stuck:

  • If I use a local IP, Google refuses to authorize it.

  • If I use a public domain, Omada can’t route back locally without NAT setup or public hosting.

  • The Omada controller doesn’t expose a clear setting to define an external callback path or handle OAuth directly.

What I’m trying to achieve:
Let users connect to Wi-Fi, reach the captive portal, sign in using Google, and then get authenticated through Omada’s external portal integration — all without exposing my controller publicly.

Questions:

  1. Is there any way to make Google OAuth 2.0 work with a locally hosted Omada external portal?

  2. Do I need to set up a public domain with HTTPS (like via Cloudflare Tunnel or Ngrok) just for the OAuth redirect?

  3. Has anyone successfully integrated Google OAuth 2.0 with Omada’s external portal flow (and if yes, how)?

Any suggestions or examples (especially redirect handling and callback integration with Omada’s API) would be really helpful.

  0      
  0      
#1
Options
1 Accepted Solution
Re:How to Setup Google Oauth portal Authentication in OC 200 Hardware Controller ?-Solution
Hace 11 horas - last edited Hace 11 horas

Hi  @A_Mansoor 

 

Thanks for posting here.

Please refer to the steps below:

How to Configure Google Authentication on Local Omada Controller

Recommended Solution
  0  
  0  
#2
Options
4 Reply
Re:How to Setup Google Oauth portal Authentication in OC 200 Hardware Controller ?-Solution
Hace 11 horas - last edited Hace 11 horas

Hi  @A_Mansoor 

 

Thanks for posting here.

Please refer to the steps below:

How to Configure Google Authentication on Local Omada Controller

Recommended Solution
  0  
  0  
#2
Options
Re:How to Setup Google Oauth portal Authentication in OC 200 Hardware Controller ?
Hace 10 horas

  @Vincent-TP

What url shoul i use ? i have read and follow the steps of that post but the thing is i want it to use locally and Oauth ddint allow me to just entre the local ip here.. 
 

  0  
  0  
#3
Options
Re:How to Setup Google Oauth portal Authentication in OC 200 Hardware Controller ?
Hace 10 horas

Hi  @A_Mansoor 

 

Is your outgoing IP fixed? If so, set up port forwarding on the controller and enter the public IP + port 8843.

If it’s dynamic, you may need to contact your ISP(Internet service provider) to subscribe to a DDNS service, then open port 8843 for your controller on the gateway device.

 

Below is a guide on how to configure port forwarding for your reference:

How to set up Port Forwarding feature on TP-Link SMB Router (new UI)

 

  0  
  0  
#4
Options
Re:How to Setup Google Oauth portal Authentication in OC 200 Hardware Controller ?
Hace 9 horas

  @Vincent-TP 

now 

  0  
  0  
#5
Options