#55481 closed feature request (invalid)
Add custom headers for `update_plugins_{$hostname}` filter's package
| Reported by: | natsumesou | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Upgrade/Install | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
This update_plugins_{$hostname} filter may aim to update private plugins, but this feature has no authentication logic.
When I add to GitHub's release zipball URL to this filter, I can update only public repository's zipball.
So I think this filter need custom headers to package's URL(e.g. Authorization header).
Thank you.
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
@natsumesou Thank you for the ticket...and welcome to Trac.
If I understand what you problem is, you can use the http_request_args filter to add the
Authenticationheader.You should be able to do something like (note: the following code has not been tested):
where
MY_UPDATE_URLandMY_UPDATE_URLare just placeholders (and not to be interpreted as PHP constants) and should be replaced by whatever your use case requires.