Hello, i have just installed magento 2 on my localserver.
Im installed the sample data true cms with this: php bin/magento sampledata:deploy
And true the installation this come up:
<warning>Warning from repo.magento.com: You haven't provided your Magento authentication keys. For instructions, visit https://devdocs.magento.com/guides/v2.3/install-gde/prereq/connect-auth.html</warning>
Authentication required (repo.magento.com):
Username:
But i can access marketplace magento, i only get An error occurred, please try again later.
When i press log in.
How can i get the Magento authentication keys, im stuck.
Please help.
Hello @swedishpower
To install Magento sample data or any extension from repo.magento.com, you need to provide your Magento authentication keys. These keys are not the same as your Magento Marketplace login credentials. Here's how to generate and configure them:
When prompted during the sample data deployment, use:
Alternatively, you can configure Composer directly:
composer config --global http-basic.repo.magento.com <public_key> <private_key>
Replace <public_key> and <private_key> with your actual keys.
Now run the sample data command again:
php bin/magento sampledata:deploy
If you're unable to log in to the Marketplace:
If the issue persists, it might be a temporary problem on Magento's side. You can check Magento Status Page for any ongoing issues.
Let me know if this resolves your issue or if you need more help!
it means Magento is trying to access packages from repo.magento.com and needs valid credentials. To get these keys, you’ll need to create a Magento Marketplace account. Once logged in, go to your profile, then under the "Marketplace" tab, find "Access Keys." Create a new key pair you’ll get a public key and a private key. Use the public key as your username and the private key as the password when prompted. If you're having trouble logging into the Marketplace (like getting an "An error occurred" message), try clearing your browser cache, using incognito mode, or switching browsers. You can also reset your password or contact Magento support if the actor issue continues. Once you have the keys, you can re-run the php bin/magento sampledata:deploy command and use your keys to complete the process.