Skip to content

New Feature: Accept Basic Authorization in endpoint (Ollama alpha) #13151

@celoko-cintra

Description

@celoko-cintra

Currently, when using AddOllamaChatCompletion, the endpoint does not support Basic Authorization headers.

This makes integration more restrictive, since many environments and reverse proxies (e.g., API gateways, internal services, or hosted Ollama instances) often rely on Basic Auth for authentication.

Feature Request:
Please add support for Basic Authorization in the AddOllamaChatCompletion endpoint. This would allow developers to:

  • Connect to Ollama instances that are behind Basic Auth protection.
  • Use existing API gateways and security standards without workarounds.
  • Improve compatibility with enterprise environments where Basic Auth is the default.

Why this is important:

  • In some corporate setups, Ollama runs behind proxies that enforce Basic Auth instead of Bearer tokens.
  • Without this support, developers must implement custom handlers or bypass security requirements.
  • Adding Basic Auth support would make AddOllamaChatCompletion more flexible and widely usable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions