I am installing magento2 B2B extension after creating auth.json and giving proper username and password i am getting following error.

composer require magento/extension-b2b 

  Invalid credentials for 'https://repo.magento.com/packages.json', aborting.

and my auth.json file contain following code.

"http-basic": {
    "repo.magento.com": {
       "username": "muha********",
        "password": "Zx*********"


anyone can help if possible

  • Also b2b is available on Magento Commerce only not open source Commented Nov 9, 2019 at 22:24

1 Answer 1


username = public key,

password = private key

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.