adk-python icon indicating copy to clipboard operation
adk-python copied to clipboard

Basic HTTP auth drops credentials with empty username or password

Open 1aifanatic opened this issue 3 weeks ago • 1 comments

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.

1aifanatic avatar Nov 13 '26 22:11 1aifanatic

Hello @1aifanatic,

Thank you for raising this issue. We believe you have already checked #8151, we have reviewed it as well and it should resolve this issue. But the PR is currently under review and will be merged once reviewer approve it. We appreciate your patience in this matter.

llalitkumarrr avatar Nov 18 '26 04:11 llalitkumarrr