mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 12:58:11 -05:00
[PR #23410] [CLOSED] fix: enable follow_redirects in OAuth client manager #42815
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/23410
Author: @olivier-lacroix
Created: 4/5/2026
Status: ❌ Closed
Base:
dev← Head:fix/oauth-redirect-handling📝 Commits (1)
0e42b03fix: enable follow_redirects in OAuth client manager📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
backend/open_webui/utils/oauth.py(+1 -0)📄 Description
Pull Request Checklist
devbranch.follow_redirectsin the OAuth client manager to handle providers that redirect on token/userinfo endpoints.follow_redirectsflag to the client configuration.OAuthClientManager.Description
This PR fixes an issue where OAuth authentication would fail if the provider's token or user information endpoints performed an HTTP redirect. By default, the HTTP client used by Authlib in our
OAuthClientManagerdoes not follow redirects. Enablingfollow_redirects: Trueensures better compatibility with various OAuth providers.Fixes #23409
Changelog Entry
Fixed
Additional Information
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.