How to add authentication to download package from private repository in composer.json

vikram.bishnoi
vikram.bishnoi Spryker Solution Partner Posts: 15 🧑🏻‍🚀 - Cadet

Hi Team,

Can someone please suggest how we can provide authentication parameters to download a package from private repository. We tried auth.json just parallel to composer.json which is working fine on local but failing on staging.

Another way we tried to follow is https://docs.spryker.com/docs/scos/dev/the-docker-sdk/202307.0/configuring-access-to-private-repositories.html#configuring-the-composer-authentication-environment-variable

But this is also not working. The parmeter we added is:

/<customer>/<env>/secret/common/public/COMPOSER_AUTH

But this is also not working and deployment is failing.

Any quick suggestion would be appreciated.

Regards

Best Answer

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,075 ⚖️ - Guardians (admin)
    Answer ✓

    Heyhey,

    sadly this is currently not doable by yourself in the cloud. Please create a ticket and the cloud-operations team will set it up for you :)

    All the best,

    Florian

Answers

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,075 ⚖️ - Guardians (admin)
    Answer ✓

    Heyhey,

    sadly this is currently not doable by yourself in the cloud. Please create a ticket and the cloud-operations team will set it up for you :)

    All the best,

    Florian