mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-14 05:02:01 -06:00
[PR #23436] [CLOSED] fix: enable follow_redirects for OAuth client to support redirect-bas… #27193
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/23436
Author: @micheal000010000-hub
Created: 4/6/2026
Status: ❌ Closed
Base:
dev← Head:fix/oauth-redirect📝 Commits (1)
142db69fix: enable follow_redirects for OAuth client to support redirect-based providers📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
backend/open_webui/utils/oauth.py(+1 -0)📄 Description
Description
This PR enables
follow_redirects=Truein the OAuth client configuration.Some OAuth providers return HTTP 302 redirect responses during token exchange or user info retrieval. By default, these redirects are not followed, which can cause OAuth authentication to fail.
This change ensures that redirect responses are handled correctly, improving compatibility with providers that rely on redirects.
Fixed
follow_redirects=Truetoclient_kwargsAdditional Information
OAuthClientManagerin the backendOpen to feedback if this approach aligns with project expectations.
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.