mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #18065] [CLOSED] fix(oauth): correctly access server_metadata_url #24659
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/18065
Author: @ndrsfel
Created: 10/5/2025
Status: ❌ Closed
Base:
dev← Head:fix/server_metadata_url📝 Commits (1)
9bbc696fix(oauth): correctly access server_metadata_url📊 Changes
1 file changed (+4 additions, -4 deletions)
View changed files
📝
backend/open_webui/utils/oauth.py(+4 -4)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
OAuthManagerandOAuthClientManagerexpose theserver_metadata_urlby accessing the private attributeclient._server_metadata_urlinstead ofclient.server_metadata_url. This PR allows for proper access to this attribute inget_server_metadata_url(). Fixes automatic token refresh (server_metadata_url has been None before) and logout usingmicrosoftOAuth provider without settingOPENID_PROVIDER_URLFixed
get_server_metadata_url()ofOAuthManagerandOAuthClientManagerContributor 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.