How to use the new repo.magento.com
Magento comes with a sample file in your root as auth.json.sample
you need to copy it to auth.json
It contains 2 key sets: 1 for Github and 1 for the Magento Repo
Enter the following data to your auth.json
file to login. Please use the Public Key and the Private Key
{
"http-basic": {
"repo.magento.com": {
"username":"<your public key>",
"password":"<your private key>"
}
}
}
nb. the auth file can also be found in your user root directory and hence be used elsewhere ~/.composer/auth.json
Previous example is correct. In addition... it's also possible by composer's config command.
composer.phar global config http-basic.repo.magento.com <public_key> <private_key>
Login in magento using your credentials. Then follow the navigation
1.My Account
2.Marketplace
3.My Access Key
4.Magento2
Public Key: xxxxx
Private Key:xxxxx
Public Key used as user name and Private Key used as password.