Custom Fields
Re-Envisioned
Support General Composer with API Key

  • Creator
    Topic
  • #28402
    elindydotcom
    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #28590
    Anh 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
    axieller
    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'

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