Skip to content
Advertisement

When using composer with a private VCS it infinitely asks for authorization

In my composer.json i have a private vcs repository:

JavaScript

When i call php composer.phar update i get the following:

JavaScript

Doesnt matter how many time I put in my my github credentials it keeps asking. If i put in incorrect ones it does the same thing, no errors or max attempts.

Any ideas what would cause this? I am using the latest version as retrievable by running:

JavaScript

WORK AROUND

As a work around for now i have gone to: https://github.com/settings/applications and generated a token manually then ran:

JavaScript

But i would still like to know why it couldnt do it automatically

Advertisement

Answer

This is because the current version of composer aa74818fe00c5f5eb57c1c38b807e9e2950c670c does not support GitHubs 2 factor authorization. So any account that have that setup will have this issue.

There has been a pull request created for it and it should be good to go in one of the upcoming version updates.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement