mirror of
https://github.com/open-webui/desktop.git
synced 2026-11-05 01:27:46 +00:00
[PR #277] fix: keep configured SSO callbacks in the desktop session #239
Labels
No labels
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/desktop#239
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/desktop/pull/277
Author: @aigens-hans
Created: 10/1/2026
Status: 🔄 Open
Base:
main← Head:codex/fix-sso-navigation📝 Commits (1)
acb6a0bfix: preserve configured SSO navigation in connection sessions📊 Changes
6 files changed (+172 additions, -3 deletions)
View changed files
📝
README.md(+29 -0)📝
package.json(+2 -1)📝
src/main/index.ts(+12 -2)➕
src/main/utils/auth-navigation.ts(+35 -0)📝
src/main/utils/index.ts(+1 -0)➕
tests/auth-navigation.test.mjs(+93 -0)📄 Description
OAuth login can finish at the identity provider but leave Desktop stuck: the webview's
will-navigatehandler opens the callback in the default browser whenever its origin differs from the current page. The external browser does not share the connection's OAuth state/PKCE cookies.Add optional per-connection
authOriginsconfiguration. Navigation between the Open WebUI server and explicitly configured HTTPS identity-provider origins remains in the connection's webview/session. Match the guest's session to its connection rather than using the active sidebar connection, so background webviews cannot inherit another connection's policy. Unconfigured connections, unrelated links, and popup handling retain their existing behavior.The README documents configuration paths and an example. Entries with paths, credentials, queries, fragments, wildcards, or insecure schemes are ignored.
Validation:
npm test: six regression tests covering the federated callback chain, opt-in behavior, lookalike hosts, scheme/port mismatches, malformed configuration, and isolation between connections.npm run build: passed, including TypeScript and Svelte checks; existing renderer accessibility warnings remain.No new dependencies. The test command uses Node's built-in TypeScript stripping (Node 22.6+).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.