Fixing an issue where the new oauth_2.1_statickey_type was not prompting for auth as the oauth_2.1 type does because it was missing from these if statements
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.
Note
Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.
🔄 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/23191
**Author:** [@dennishenry](https://github.com/dennishenry)
**Created:** 3/29/2026
**Status:** ❌ Closed
**Base:** `dev` ← **Head:** `fix_oauth_2.1_static_auth`
---
### 📝 Commits (1)
- [`9f62a78`](https://github.com/open-webui/open-webui/commit/9f62a78f49665a0e88b2bcbc69ca95f903666af5) fix: ensure oauth2.1 static server types do authentication
### 📊 Changes
**2 files changed** (+3 additions, -3 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/open_webui/routers/tools.py` (+2 -2)
📝 `backend/open_webui/utils/middleware.py` (+1 -1)
</details>
### 📄 Description
# Changelog Entry
### Description
- Fixing an issue where the new `oauth_2.1_static` `key_type` was not prompting for auth as the `oauth_2.1` type does because it was missing from these if statements
### Fixed
- Ensure `oauth_2.1_static` tool servers handle authentication
---
### Additional Information
N/A
### Screenshots or Videos
N/A
### Contributor License Agreement
<!--
🚨 DO NOT DELETE THE TEXT BELOW 🚨
Keep the "Contributor License Agreement" confirmation text intact.
Deleting it will trigger the CLA-Bot to INVALIDATE your PR.
Your PR will NOT be reviewed or merged until you check the box below confirming that you have read and agree to the terms of the CLA.
-->
- [x] 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.
> [!NOTE]
> Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/23191
Author: @dennishenry
Created: 3/29/2026
Status: ❌ Closed
Base:
dev← Head:fix_oauth_2.1_static_auth📝 Commits (1)
9f62a78fix: ensure oauth2.1 static server types do authentication📊 Changes
2 files changed (+3 additions, -3 deletions)
View changed files
📝
backend/open_webui/routers/tools.py(+2 -2)📝
backend/open_webui/utils/middleware.py(+1 -1)📄 Description
Changelog Entry
Description
oauth_2.1_statickey_typewas not prompting for auth as theoauth_2.1type does because it was missing from these if statementsFixed
oauth_2.1_statictool servers handle authenticationAdditional Information
N/A
Screenshots or Videos
N/A
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.