Skip to content

Add support for Composer custom-headers authentication#1652

Merged
retlehs merged 1 commit intomasterfrom
feature/composer-custom-headers-auth
Mar 13, 2026
Merged

Add support for Composer custom-headers authentication#1652
retlehs merged 1 commit intomasterfrom
feature/composer-custom-headers-auth

Conversation

@retlehs
Copy link
Copy Markdown
Member

@retlehs retlehs commented Mar 11, 2026

Summary

  • Adds the custom-headers authentication type introduced in Composer 2.9 (composer/composer#12372)
  • Allows private repositories using custom HTTP headers for authentication
  • Adds composer_authentications_using_custom_headers filter in helpers and excludes it from the other_token catch-all
  • Adds tasks in both wordpress-install and deploy roles

Configuration example

# group_vars/<env>/vault.yml
vault_wordpress_sites:
  example.com:
    composer_authentications:
      - { type: custom-headers, hostname: repo.example.org, headers: ["API-TOKEN: my-api-token", "X-CUSTOM-HEADER: value"] }

Docs updates: roots/docs#577

🤖 Generated with Claude Code

Adds the `custom-headers` auth type introduced in Composer 2.9, allowing
private repositories that use custom HTTP headers for authentication.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@retlehs retlehs merged commit 86a89bd into master Mar 13, 2026
2 checks passed
@retlehs retlehs deleted the feature/composer-custom-headers-auth branch March 13, 2026 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants