cancel
Showing results for 
Search instead for 
Did you mean: 

Problemas de credenciales composer

SOLVED

Problemas de credenciales composer

Hola,

 

Estoy intentando installar un modulo por composar y me da este error.

 

 [Composer\Downloader\TransportException]
  Invalid credentials for 'https://repo.magento.com/archives/hellobrave/core/
  hellobrave-core-1.0.1.0.zip', aborting.
 
 
Las credenciales son correctes ya que antes que este a instalado 40 modulos más, sabeis como puedo solucionarlo.
 
Muchas gracias
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Problemas de credenciales composer

@iria_guere

 

Inside the Magento project directory execute the following Composer command:

$ composer config http-basic.repo.magento.com <public_key> <private_key>

Just replace the placeholders with the actual values (public_key will become the username and private_key the password in HTTP authentication with repo.magento.com).

The auth settings can be tested by using fetching latest version with a faked update:

$ composer update --dry-run

This will give an error message like:

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

if something is wrong with the credentials.

I can strongly suggest to manage credentials inside the project folder as my answer suggests. I also would not edit the auth.json by hand but just with the composer command as it is less error-prone.

Manish Mittal
https://www.manishmittal.com/

View solution in original post

5 REPLIES 5

Re: Problemas de credenciales composer

Hola @iria_guere,

 

Use su clave pública como nombre de usuario y clave privada como contraseña de su cuenta de magento connect

Puede encontrar la clave pública y privada en:

https://developer.magento.com/customer/account/

Portal del desarrollador -> Mis claves de acceso -> Crear una nueva clave de acceso (o usar la clave existente)

 

Enlace de referencia: https://devdocs.magento.com/guides/v2.0/install-gde/prereq/connect-auth.html

-
Si mi respuesta es útil, por favor acepte como solución y dé Kudos

If my answer is useful, please Accept as Solution & give Kudos

Re: Problemas de credenciales composer

Hola,

 

Las credenciales estan correctamente puestas en el composer/load pero me sigue fallando las credenciales.

Re: Problemas de credenciales composer

Hello @iria_guere

 

 You can followed the instructions at http://devdocs.magento.com/guides/v2.0/install-gde/prereq/connect-auth.html to get a public and private key, then pasted the public key into the username and the private key in as the password?

 

If this does not work, I suggest having a read of the composer documentation to create an auth.json file and pasting the keys indirectly. See https://getcomposer.org/doc/articles/http-basic-authentication.md for suggestions

Manish Mittal
https://www.manishmittal.com/

Re: Problemas de credenciales composer

These steps I have already done, I have also cleaned cache and it still does not work

Re: Problemas de credenciales composer

@iria_guere

 

Inside the Magento project directory execute the following Composer command:

$ composer config http-basic.repo.magento.com <public_key> <private_key>

Just replace the placeholders with the actual values (public_key will become the username and private_key the password in HTTP authentication with repo.magento.com).

The auth settings can be tested by using fetching latest version with a faked update:

$ composer update --dry-run

This will give an error message like:

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

if something is wrong with the credentials.

I can strongly suggest to manage credentials inside the project folder as my answer suggests. I also would not edit the auth.json by hand but just with the composer command as it is less error-prone.

Manish Mittal
https://www.manishmittal.com/