**How We Simplified Our HubSpot Integration in PolySaaS: From Complex Proxy to Smart Passthrough + Popup**
After investing many hours (and a fair bit of coffee) into a full reverse proxy for HubSpot, we ran into persistent challenges with their `home-redirect-ui` bundle and authentication flows that simply refused to cooperate inside our multi-tenant passthrough architecture.
Rather than continue the arms race, we chose a simpler, more reliable path that still gives users a beautifully integrated experience.
### The New Approach: Passthrough Dashboard + Smart Popup
We now:
– Use our existing **passthrough authentication** to log the user into HubSpot.
– Present a clean **PolySaaS dashboard** with our full admin sidebar, orchestration tools, and quick actions.
– Open HubSpot in a **popup window** (or new tab) for the full native experience while keeping PolySaaS controls visible on the left.
This hybrid solution gives the best of both worlds:
– Full access to PolySaaS features (AI orchestration, other tool passthroughs, monitoring)
– Native HubSpot UI when needed
– No more endless redirect loops or broken client-side bundles
### See It In Action
### Why This Works Better
– **Stability** — No more fighting HubSpot’s anti-iframe / redirect protections.
– **Maintainability** — Much easier to support across HubSpot updates.
– **User Experience** — Users get the full power of both platforms without friction.
– **Future-proof** — Easy to extend with more orchestration actions between HubSpot and your other tools (Odoo, Mattermost, etc.).
This change is now live for our early users and will be part of the upcoming public beta.
We’re continuing to refine the popup experience (keyboard shortcuts, better window management, and deeper cross-app actions) and would love your feedback.
Have you struggled with embedding complex SaaS tools? Drop a comment below — we’re always learning from real-world integration challenges.
