mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-11 10:34:13 -05:00
[PR #19163] [CLOSED] fix: generate discovery URLs with path prefix #48161
Reference in New Issue
Block a user
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/open-webui/pull/19163
Author: @xqqp
Created: 11/13/2025
Status: ❌ Closed
Base:
dev← Head:patch-2📝 Commits (1)
e9978b5fix: generate discovery URLs with path prefix📊 Changes
1 file changed (+11 additions, -0 deletions)
View changed files
📝
backend/open_webui/utils/oauth.py(+11 -0)📄 Description
OAuth discovery URLs are generated based on the original OAuth URL: Two URLs are generated excluding any passed URL path and two URLs are generated with the original URL path as a postfix. With this PR two additional URLs are generated with the URL path as a prefix.
This fixes cases where a URL path is used as a proxy identifier (e.g. http://example.com/oauth_server).
Without this change http://example.com/.well-known/oauth-authorization-server and http://example.com/.well-known/oauth-authorization-server/oauth_server are queried.
With this change http://example.com/oauth_server/.well-known/oauth-authorization-server is checked as well.
Changelog Entry
Fixed
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.