Skip to content

[FEATURE REQ] Support empty proxy credentials #48681

Open
@shenglol

Description

@shenglol

Library name

Azure.Core 1.44.1

Please describe the feature.

We use ContainerRegistryContentClient behind a proxy and encountered a 407 Proxy Authentication Required error. The machine is configured with the HTTP_PROXY, HTTPS_PROXY, or ALL_PROXY environment variables, where the credentials are set to an empty username and password (:). Although the System.Net.Http has supported this behavior since this PR - treating : as CredentialCache.DefaultNetworkCredentials - the Azure SDK for .NET handles proxy credentials with its own parsing logic, which doesn’t follow the same behavior.

Would it be possible to add support for parsing an empty username and password as CredentialCache.DefaultNetworkCredentials to align with the System.Net.Http behavior? This change would prevent the need to configure proxy credentials programmatically in our application.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Azure.CoreClientThis issue points to a problem in the data-plane of the library.customer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-requestThis issue requires a new behavior in the product in order be resolved.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions