Find answers to frequently asked questions and read through some tips and tricks related to all Setasign PHP products.

choose category

"Invalid Credentials for 'https://...', aborting" when using composer

If you receive such error message when installing a package via composer you simply didn't define correct credentials or you simply are not allowed to download the package.

Composer requires the same credentials you use to login to our website. You also can define an individual password for composer downloads in your personal profile.

If you use composer through the command line, you will be asked for your credentials. You will also be asked if you want to save them in your auth.json file in your COMPOSER_HOME folder. If you are not asked for a password but receive this error message you may need to update your credentials in the auth.json file manually. 

If you need to install the package in an interactive shell you need to define your credentials before in an auth.json file in your COMPOSER_HOME folder or beside your composer.json. For more details please see here