Comments (6)
Hello @Evaske! AFAIK private-composer-installer does not support sending cookies.
BTW How would you get a cookie in an automated manner?
from private-composer-installer.
It seems Composer supports extra HTTP headers for repositories only.
https://getcomposer.org/doc/articles/authentication-for-private-packages.md#manual-custom-token-authentication
from private-composer-installer.
Take a peak into Yithemes' own updater. Maybe your URL is in there!
https://github.com/wp-plugins/yith-woocommerce-wishlist/blob/master/plugin-fw/lib/yit-upgrade.php#L209-L232
You can read those keys from WP with WP-CLI and export them as shell variables.
from private-composer-installer.
I didn't even think of looking in their upgrade script! I'll have a play and see if I can get hold of a working URL.
from private-composer-installer.
You can do these before running composer
.
export PLUGIN_YITH_SECRET_KEY="$(wp eval 'echo get_option("yit_products_licence_activation")["secret_key"];')"
export PLUGIN_YITH...
...it turns out this 👆 is technically incorrect but shows how to proceed.
from private-composer-installer.
As @szepeviktor already mentioned, this package does currently not support
- custom request headers (like a cookie or authorization) and
- dynamic acquisition of environment variables (e.g. logging in to acquire a temporary session token to be used in the file download).
Things along these lines are already being discussed in #22.
from private-composer-installer.
Related Issues (20)
- Install issue with roots.io Bedrook HOT 3
- Incompatile with prestissimo plugin HOT 8
- Support plugins served by EDD HOT 7
- Support for Composer 2 HOT 3
- Support placeholder in other part than dist URL HOT 3
- Can you place the .env file in a directory above `composer.json`? HOT 3
- Type content/mu-plugin HOT 1
- Update dependency vlucas/phpdotenv to v5 HOT 2
- Allowed memory exhausted when installing v5 HOT 3
- Fatal error: Uncaught TypeError: Argument 2 passed to FFraenz\PrivateComposerInstaller\Plugin::fulfillVersionPlaceholder() HOT 2
- Fail installing ACF when running `composer update` after updating to Composer 2 HOT 6
- Empty ACF package folder in vendor/ HOT 8
- Class 'FFraenz\PrivateComposerInstaller\Environment\LoaderFactory' not found HOT 17
- "Could not find package" (Packagist conflict?) HOT 7
- Compatibility with GitHub Actions? HOT 6
- WPML installation stopped working? HOT 9
- Version constraint for Composer 1 does not allow ACF 5.10.x to update HOT 3
- How to download Divi theme HOT 2
- Remove ACF Pro from examples now that they support native Composer integration? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from private-composer-installer.