Skip to content

fix: allow OAuth popups to open inside Electron webview#218

Open
pascal-sidlee wants to merge 1 commit into
open-webui:mainfrom
pascal-sidlee:fix/oauth-popup-blocked-in-webview
Open

fix: allow OAuth popups to open inside Electron webview#218
pascal-sidlee wants to merge 1 commit into
open-webui:mainfrom
pascal-sidlee:fix/oauth-popup-blocked-in-webview

Conversation

@pascal-sidlee
Copy link
Copy Markdown

@pascal-sidlee pascal-sidlee commented May 26, 2026

Description

OAuth popups (Google Drive, Google Sign-In, etc.) are blocked when triggered
from a webview because setWindowOpenHandler returns { action: 'deny' } for
all popups. The popup opens in the system browser instead, which breaks the
OAuth handshake, the opener page can't receive the postMessage callback from
an external browser window.

Fix: whitelist known OAuth provider hosts so their popups open as child windows
inside Electron, where the callback can complete normally. All other popups
continue to open in the system browser.

Related Issues

Closes #175

Contributor License Agreement

Note

Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OAuth failure

2 participants