Which Magento 2 File Store Authentication Keys ( Public Key & Private Key) To Access repo.magento.com Repository In Magento 2.x

There are following below file stores Authentication Keys ( Public Key & Private Key) To Access repo.magento.com Repository In Magento 2

File Path as below-

Magento2-Root-Directory/auth.json

{
    "http-basic": {
        "repo.magento.com": {
            "username": "<public-key>",
            "password": "<private-key>"
        }
    }
}

Go To Magento 2 Root folder & rename auth.json.sample into auth

Once added Private & Public Keys, finally auth.json as below

{
"http-basic": {
"repo.magento.com": {
"username": "d42906009cbf0ea28f8278fa26e1eaa0",
"password": "f67302679e36b18610d1a1fe05350d9a"
}
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *