[PR #19165] [CLOSED] fix: pass token_endpoint_auth_method when creating an oauth client #48162

Closed
opened 2026-04-29 23:42:13 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/19165
Author: @xqqp
Created: 11/13/2025
Status: Closed

Base: devHead: patch-3


📝 Commits (2)

  • 4dfdf27 fix: pass token_endpoint_auth_method when creating an oauth client
  • 7b59b09 fix: pass token_endpoint_auth_method when creating an oauth client

📊 Changes

1 file changed (+8 additions, -3 deletions)

View changed files

📝 backend/open_webui/utils/oauth.py (+8 -3)

📄 Description

AuthLib defaults to using basic auth when token_endpoint_auth_method has not been configured. This PR passes token_endpoint_auth_method when creating an OAuth client. Without this authorize_access_token() fails if the OAuth server does not accept basic auth as an authentication method.

Changelog Entry

Fixed

  • use client's configured endpoint authentication method, instead of defaulting to basic authentication

Contributor 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.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/19165 **Author:** [@xqqp](https://github.com/xqqp) **Created:** 11/13/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `patch-3` --- ### 📝 Commits (2) - [`4dfdf27`](https://github.com/open-webui/open-webui/commit/4dfdf270f18fd17692ce452a320ceef560cfaab6) fix: pass token_endpoint_auth_method when creating an oauth client - [`7b59b09`](https://github.com/open-webui/open-webui/commit/7b59b09cc682919a0a4bda1302a28a0e753372b3) fix: pass token_endpoint_auth_method when creating an oauth client ### 📊 Changes **1 file changed** (+8 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/utils/oauth.py` (+8 -3) </details> ### 📄 Description AuthLib defaults to using basic auth when `token_endpoint_auth_method` has not been configured. This PR passes `token_endpoint_auth_method` when creating an OAuth client. Without this `authorize_access_token()` fails if the OAuth server does not accept basic auth as an authentication method. # Changelog Entry ### Fixed - use client's configured endpoint authentication method, instead of defaulting to basic authentication ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 23:42:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#48162