From 0e42b030c680ee46c9a520f2e85253cb35ae2de1 Mon Sep 17 00:00:00 2001 From: Olivier Lacroix Date: Sun, 5 Apr 2026 12:11:08 +1000 Subject: [PATCH] fix: enable follow_redirects in OAuth client manager --- backend/open_webui/utils/oauth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/open_webui/utils/oauth.py b/backend/open_webui/utils/oauth.py index bf6be461e6..b87897c6a3 100644 --- a/backend/open_webui/utils/oauth.py +++ b/backend/open_webui/utils/oauth.py @@ -523,6 +523,7 @@ class OAuthClientManager: 'client_id': oauth_client_info.client_id, 'client_secret': oauth_client_info.client_secret, 'client_kwargs': { + 'follow_redirects': True, **({'scope': oauth_client_info.scope} if oauth_client_info.scope else {}), **( {'token_endpoint_auth_method': oauth_client_info.token_endpoint_auth_method}