mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #9673] [CLOSED] feat: Add config to pass OAuth token to OpenAI service #22404
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/9673
Author: @imranq2
Created: 2/9/2025
Status: ❌ Closed
Base:
dev← Head:dev📝 Commits (3)
487f420add ENABLE_FORWARD_OAUTH_TOKEN environment variable. If this is set, then pass the OAUTH token to OpenAI service9a90310fix PORT in Dockerfile196bd2aadd back OAUTH log entry📊 Changes
3 files changed (+54 additions, -9 deletions)
View changed files
📝
Dockerfile(+4 -2)📝
backend/open_webui/env.py(+8 -0)📝
backend/open_webui/routers/openai.py(+42 -7)📄 Description
add ENABLE_FORWARD_OAUTH_TOKEN environment variable. If this is set then pass the OAUTH token to OpenAI service. This allows our OpenAI compatible service to authenticate the user and control access based on the user.
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
https://github.com/open-webui/open-webui/discussions/8957
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added
ENABLE_FORWARD_OAUTH_TOKENto optionally forward OAuth tokens in API requestsNODE_OPTIONS="--max_old_space_size=4096"in Dockerfile to increase Node.js memory limitChanged
${PORT:-8080}Fixed
Additional Information
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.