[PR #2139] [CLOSED] [WIP] Support for Automatic1111 API Auth #7701

Closed
opened 2025-11-11 17:33:44 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/2139
Author: @spammenotinoz
Created: 5/9/2024
Status: Closed

Base: devHead: Feature-Automatic1111-Authentication


📝 Commits (1)

  • 0eb2f5c Support for Automatic1111 API Auth

📊 Changes

1 file changed (+19 additions, -12 deletions)

View changed files

📝 backend/apps/images/main.py (+19 -12)

📄 Description

Enable Auth in Automatic111 with the --api --api-auth username:password

Set the following environment variables in docker;
- "ENABLE_IMAGE_GENERATION=True"
- "AUTOMATIC1111_BASE_URL=http://invokeaiurl:7860"
- "AUTOMATIC1111_API_AUTH=username:password"
- "IMAGE_GENERATION_MODEL=model_name"
- "IMAGE_SIZE=widthxheight"
Note: Works, but if you enter Image within Admin settings it breaks, as breaks as Auth hasn't been added to the Admin Interface. Appreciate if someone can help with that.

Pull Request Checklist

  • Target branch: Pull requests should target the dev branch.
    DEV

  • Description: Briefly describe the changes in this pull request.
    Session authentication added to backend\apps\images\main.py

  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.

  • Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?

  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
    No

  • Testing: Have you written and run sufficient tests for the changes?

  • Code Review: Have you self-reviewed your code and addressed any coding standard issues?
    Yes, refer to current bugs


Description

Support for Automatic1111 Authentication, which is critical if you host the Automatic1111 on a different server, which likely most will want to due to GPU limitations.

Changelog Entry

Added

  • Authentication support for Automatic1111

Breaking Changes

  • Breaks Image Settings within Admin Interface

Additional Information

  • WIP

🔄 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/2139 **Author:** [@spammenotinoz](https://github.com/spammenotinoz) **Created:** 5/9/2024 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `Feature-Automatic1111-Authentication` --- ### 📝 Commits (1) - [`0eb2f5c`](https://github.com/open-webui/open-webui/commit/0eb2f5c8274035d04920082ab187c4c5f67d7ae9) Support for Automatic1111 API Auth ### 📊 Changes **1 file changed** (+19 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `backend/apps/images/main.py` (+19 -12) </details> ### 📄 Description Enable Auth in Automatic111 with the --api --api-auth username:password Set the following environment variables in docker; - "ENABLE_IMAGE_GENERATION=True" - "AUTOMATIC1111_BASE_URL=http://invokeaiurl:7860" - "AUTOMATIC1111_API_AUTH=username:password" - "IMAGE_GENERATION_MODEL=model_name" - "IMAGE_SIZE=widthxheight" Note: Works, but if you enter Image within Admin settings it breaks, as breaks as Auth hasn't been added to the Admin Interface. Appreciate if someone can help with that. ## Pull Request Checklist - [ ] **Target branch:** Pull requests should target the `dev` branch. DEV - [ ] **Description:** Briefly describe the changes in this pull request. Session authentication added to backend\apps\images\main.py - [ ] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [ ] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - [ ] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? No - [ ] **Testing:** Have you written and run sufficient tests for the changes? - [ ] **Code Review:** Have you self-reviewed your code and addressed any coding standard issues? Yes, refer to current bugs --- ## Description Support for Automatic1111 Authentication, which is critical if you host the Automatic1111 on a different server, which likely most will want to due to GPU limitations. --- ### Changelog Entry ### Added - Authentication support for Automatic1111 ### Breaking Changes - Breaks Image Settings within Admin Interface --- ### Additional Information - WIP --- <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 2025-11-11 17:33:44 -06: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#7701