[GH-ISSUE #16627] feat: Allow authenticating to AzureAIDocumentIntelligenceLoader using DefaultAzureCredential() #56648

Closed
opened 2026-05-05 19:53:02 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @selenecodes on GitHub (Aug 14, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16627

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

Currently the Azure AI Document Intelligence instance requires authenticating with an API key, see:

438e5d966f/backend/open_webui/retrieval/loaders/main.py (L343-L347)

This is undesirable for us as we prefer autenticating using workload-identity's in AKS pods or az login when developing locally.

Desired Solution you'd like

Authenticate to Azure AI Document Intelligence like so:

from azure.identity import DefaultAzureCredential

loader = AzureAIDocumentIntelligenceLoader(
    file_path=file_path,
    api_endpoint=self.kwargs.get("DOCUMENT_INTELLIGENCE_ENDPOINT"),
    azure_credential=DefaultAzureCredential()
)

Alternatives Considered

We currently maintain this in our own fork but I thought it would be beneficial to have in the main source repo as well.

Additional Context

No response

Originally created by @selenecodes on GitHub (Aug 14, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/16627 ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description Currently the Azure AI Document Intelligence instance requires authenticating with an API key, see: https://github.com/open-webui/open-webui/blob/438e5d966f0f64f9ea3feab22724a5bd96a4127b/backend/open_webui/retrieval/loaders/main.py#L343-L347 This is undesirable for us as we prefer autenticating using workload-identity's in AKS pods or `az login` when developing locally. ### Desired Solution you'd like Authenticate to Azure AI Document Intelligence like so: ```python from azure.identity import DefaultAzureCredential loader = AzureAIDocumentIntelligenceLoader( file_path=file_path, api_endpoint=self.kwargs.get("DOCUMENT_INTELLIGENCE_ENDPOINT"), azure_credential=DefaultAzureCredential() ) ``` ### Alternatives Considered We currently maintain this in our own fork but I thought it would be beneficial to have in the main source repo as well. ### Additional Context _No response_
Author
Owner

@tjbck commented on GitHub (Aug 16, 2025):

PR welcome.

<!-- gh-comment-id:3193959179 --> @tjbck commented on GitHub (Aug 16, 2025): PR welcome.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#56648