Code Monkey home page Code Monkey logo

Comments (6)

szepeviktor avatar szepeviktor commented on May 20, 2024

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.

szepeviktor avatar szepeviktor commented on May 20, 2024

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.

szepeviktor avatar szepeviktor commented on May 20, 2024

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.

Evaske avatar Evaske commented on May 20, 2024

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.

szepeviktor avatar szepeviktor commented on May 20, 2024

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.

ffraenz avatar ffraenz commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.