Composer with API Key

Support General Composer with API Key

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #28402
    maybeadevmaybeadev
    Participant

    Hi:

    The current example for using composer with the api key to grab the premium add-ons places the api key in the json file as part of the metabox repo url.

    Is there support for using a custom request header in which to place the api key or http basic auth?

    Thanks.

    #28590
    Anh TranAnh Tran
    Keymaster

    Hi, currently we don't have support for putting API key in the header yet or using it with basic auth. Can you share how you do it with Composer?

    #28683
    axielleraxieller
    Participant

    You could use this Composer plugin to manage private packages: private-composer-installer see it here. In your composer.json add

    {
          "type": "composer",
          "url": "https://packages.metabox.io/{%MB_KEY}"
    }

    under the "repositories" key.

    Require the plugin

    "ffraenz/private-composer-installer": "^5.0"

    Then in your .env file add your license, e.g: MB_KEY='xxxxx'

    #45341
    JOANNA WHITTLEJOANNA WHITTLE
    Participant

    I would also love support for this!!! It's also how ACF Pro does it - ACF Pro Example

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.