- Merge request !157Issue #3552049: Support HTTP basic auth in Header authorization plugin → (Open) created by aron novak
When using the Header authorization plugin with Entity Share, HTTP basic authentication credentials embedded in the remote URL (e.g., https://username:password@example.com) are not properly extracted and used by the HTTP client.
This creates issues when remote sites are protected by HTTP basic authentication (such as staging environments protected by .htaccess), because even though the credentials are included in the URL configuration, the resulting HTTP requests fail with 401 Unauthorized errors.
The Header plugin currently uses the full URL (including any embedded credentials) as the base_uri for Guzzle, but Guzzle requires basic auth credentials to be passed separately via the auth option to work correctly.
https://username:password@example.com:portModify the Header authorization plugin's getClient() and getJsonApiClient() methods to:
auth optionbase_uriThis approach allows the Header plugin to support both custom header-based authorization (like API keys) and HTTP basic authentication simultaneously, which is a common requirement for staging/production environments.
None.
None. This is an internal implementation change that maintains backward compatibility.
None.
Active
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.