mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[PR #16009] [MERGED] feat: add OAuth configuration warning for missing OPENID_PROVIDER_URL #127659
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/16009
Author: @Classic298
Created: 7/24/2025
Status: ✅ Merged
Merged: 8/4/2025
Merged by: @tjbck
Base:
dev← Head:patch-1📝 Commits (1)
723840dadd warning if OPENID_PROVIDER_URL Is not set📊 Changes
1 file changed (+13 additions, -0 deletions)
View changed files
📝
backend/open_webui/config.py(+13 -0)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Adds a startup warning when OAuth providers (Google, Microsoft, or GitHub) are configured but the required
OPENID_PROVIDER_URLenvironment variable is not set. This helps administrators identify incomplete OAuth configurations that would result in non-functional logout functionality.Added
load_oauth_providers()functionOPENID_PROVIDER_URLvalueChanged
load_oauth_providers()function to include configuration validationDeprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
This change addresses a common configuration issue where users set up OAuth providers (Google, Microsoft, GitHub) but forget to configure the required
OPENID_PROVIDER_URLenvironment variable, resulting in OAuth logout not working properly. The warning appears during application startup and provides clear guidance on how to fix the configuration.The warning only appears when:
OPENID_PROVIDER_URLis not setload_oauth_providers()is calledContributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](/CONTRIBUTOR_LICENSE_AGREEMENT), 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.