[PR #17509] [CLOSED] feat: Allow Azure OpenAI to authenticate using DefaultAzureCredential #40082

Closed
opened 2026-04-25 12:30:22 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/17509
Author: @selenecodes
Created: 9/17/2025
Status: Closed

Base: devHead: feat/azure-openai-entraid-auth


📝 Commits (5)

  • 171021c Merge pull request #17327 from open-webui/dev
  • c8f2595 feat(openai): Add DefaultAzureCredential authentication to Azure OpenAI
  • 6ff9419 chore(i18n): Parse i18n
  • 16bb568 Merge branch 'dev' into feat/azure-openai-entraid-auth
  • 51ff119 chore(openai): Run black formatter

📊 Changes

59 files changed (+159 additions, -4 deletions)

View changed files

📝 backend/open_webui/routers/openai.py (+34 -3)
📝 src/lib/components/AddConnectionModal.svelte (+11 -1)
📝 src/lib/i18n/locales/ar-BH/translation.json (+2 -0)
📝 src/lib/i18n/locales/ar/translation.json (+2 -0)
📝 src/lib/i18n/locales/bg-BG/translation.json (+2 -0)
📝 src/lib/i18n/locales/bn-BD/translation.json (+2 -0)
📝 src/lib/i18n/locales/bo-TB/translation.json (+2 -0)
📝 src/lib/i18n/locales/ca-ES/translation.json (+2 -0)
📝 src/lib/i18n/locales/ceb-PH/translation.json (+2 -0)
📝 src/lib/i18n/locales/cs-CZ/translation.json (+2 -0)
📝 src/lib/i18n/locales/da-DK/translation.json (+2 -0)
📝 src/lib/i18n/locales/de-DE/translation.json (+2 -0)
📝 src/lib/i18n/locales/dg-DG/translation.json (+2 -0)
📝 src/lib/i18n/locales/el-GR/translation.json (+2 -0)
📝 src/lib/i18n/locales/en-GB/translation.json (+2 -0)
📝 src/lib/i18n/locales/en-US/translation.json (+2 -0)
📝 src/lib/i18n/locales/es-ES/translation.json (+2 -0)
📝 src/lib/i18n/locales/et-EE/translation.json (+2 -0)
📝 src/lib/i18n/locales/eu-ES/translation.json (+2 -0)
📝 src/lib/i18n/locales/fa-IR/translation.json (+2 -0)

...and 39 more files

📄 Description

Pull Request Checklist

Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.

Before submitting, make sure you've checked the following:

  • Target branch: Please verify that the pull request targets the dev branch.
  • Description: Provide a concise description of the changes made in this pull request.
  • 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?
  • Testing: Have you written and run sufficient tests to validate the changes?
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
  • Prefix: To clearly categorize this pull request, prefix the pull request title using one of the following:
    • BREAKING CHANGE: Significant changes that may affect compatibility
    • build: Changes that affect the build system or external dependencies
    • ci: Changes to our continuous integration processes or workflows
    • chore: Refactor, cleanup, or other non-functional code changes
    • docs: Documentation update or addition
    • feat: Introduces a new feature or enhancement to the codebase
    • fix: Bug fix or error correction
    • i18n: Internationalization or localization changes
    • perf: Performance improvement
    • refactor: Code restructuring for better maintainability, readability, or scalability
    • style: Changes that do not affect the meaning of the code (white space, formatting, missing semi-colons, etc.)
    • test: Adding missing tests or correcting existing tests
    • WIP: Work in progress, a temporary label for incomplete or ongoing work

Changelog Entry

Description

Updated authentication for Azure OpenAI to allow authenticating using DefaultAzureCredential.

Added

  • Azure OpenAI now has an extra option to authenticate using EntraID

Additional Information

Screenshots or Videos

CleanShot 2025-09-17 at 12 46 58 CleanShot 2025-09-17 at 12 36 26

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/17509 **Author:** [@selenecodes](https://github.com/selenecodes) **Created:** 9/17/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feat/azure-openai-entraid-auth` --- ### 📝 Commits (5) - [`171021c`](https://github.com/open-webui/open-webui/commit/171021cfa4276f63fd9fd7f31fa0c904fb13c24c) Merge pull request #17327 from open-webui/dev - [`c8f2595`](https://github.com/open-webui/open-webui/commit/c8f25956b95f2ded27285abed14ec01d4d7b816f) feat(openai): Add DefaultAzureCredential authentication to Azure OpenAI - [`6ff9419`](https://github.com/open-webui/open-webui/commit/6ff941986b037816c2aa61512459ae4adcc53126) chore(i18n): Parse i18n - [`16bb568`](https://github.com/open-webui/open-webui/commit/16bb56891c980b879aa3ed44db677725fd627321) Merge branch 'dev' into feat/azure-openai-entraid-auth - [`51ff119`](https://github.com/open-webui/open-webui/commit/51ff119562e918ea281cd788483d60036cc1dd5f) chore(openai): Run black formatter ### 📊 Changes **59 files changed** (+159 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/routers/openai.py` (+34 -3) 📝 `src/lib/components/AddConnectionModal.svelte` (+11 -1) 📝 `src/lib/i18n/locales/ar-BH/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/ar/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/bg-BG/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/bn-BD/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/bo-TB/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/ca-ES/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/ceb-PH/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/cs-CZ/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/da-DK/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/de-DE/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/dg-DG/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/el-GR/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/en-GB/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/en-US/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/es-ES/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/et-EE/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/eu-ES/translation.json` (+2 -0) 📝 `src/lib/i18n/locales/fa-IR/translation.json` (+2 -0) _...and 39 more files_ </details> ### 📄 Description # Pull Request Checklist ### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request. **Before submitting, make sure you've checked the following:** - [x] **Target branch:** Please verify that the pull request targets the `dev` branch. - [x] **Description:** Provide a concise description of the changes made in this pull request. - [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [x] **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? - [ ] **Testing:** Have you written and run sufficient tests to validate the changes? - [x] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? - [x] **Prefix:** To clearly categorize this pull request, prefix the pull request title using one of the following: - **BREAKING CHANGE**: Significant changes that may affect compatibility - **build**: Changes that affect the build system or external dependencies - **ci**: Changes to our continuous integration processes or workflows - **chore**: Refactor, cleanup, or other non-functional code changes - **docs**: Documentation update or addition - **feat**: Introduces a new feature or enhancement to the codebase - **fix**: Bug fix or error correction - **i18n**: Internationalization or localization changes - **perf**: Performance improvement - **refactor**: Code restructuring for better maintainability, readability, or scalability - **style**: Changes that do not affect the meaning of the code (white space, formatting, missing semi-colons, etc.) - **test**: Adding missing tests or correcting existing tests - **WIP**: Work in progress, a temporary label for incomplete or ongoing work # Changelog Entry ### Description Updated authentication for Azure OpenAI to allow authenticating using DefaultAzureCredential. ### Added - Azure OpenAI now has an extra option to authenticate using EntraID --- ### Additional Information - Tested by installing `azure-cli` pip package in the docker container and authenticating using `az login` - Resolves https://github.com/open-webui/open-webui/discussions/16714 ### Screenshots or Videos <img width="642" height="678" alt="CleanShot 2025-09-17 at 12 46 58" src="https://github.com/user-attachments/assets/e56b2198-e58c-4186-816c-033deb5774df" /> <img width="1052" height="454" alt="CleanShot 2025-09-17 at 12 36 26" src="https://github.com/user-attachments/assets/39d4f9c7-9992-45be-9753-a041cd750639" /> ### 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-25 12:30:22 -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#40082