Skip to content

Basic HTTP auth drops credentials with empty username or password #8139

Description

@1aifanatic

HttpCredentials permits empty username and password values, but the Basic-auth header builders currently treat them as missing because they use truthiness checks. This silently omits the Authorization header for valid credentials such as an API key stored as the username with an empty password.

Check for None to distinguish absent credentials from explicitly empty values, and apply the same behavior to MCP tool request headers.

Regression coverage should include empty username/password combinations and absent (None) fields.

Activity

  1. added a commit that references this issue on Nov 14, 2026
    a535a18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions