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!