You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IMHO it should always ask directly for a token which the user should generate manually on github.com (instead of trusting composer it would not use the password for malicious purposes).
The text was updated successfully, but these errors were encountered:
I was able to make the API request work when I disabled my 2FA, gave my password and then enabled it again.
Also when I wasn't able to make composer ask for my token directly, I have tried to write it directly in ~/.composer/config.json, but I couldn't guess the format easily.
Sometimes when composer fetches data from GitHub it needs your credentials to go over the API rate limit.
It will ask for your username and password and it says it exchanges them for an OAuth token.
But when the user has enabled two-factor authentication on their account this workflow no longer works. The password is not enough to obtain a token anymore. There are some basic explanations here: https://help.github.com/articles/providing-your-2fa-security-code#through-the-command-line
IMHO it should always ask directly for a token which the user should generate manually on github.com (instead of trusting composer it would not use the password for malicious purposes).
The text was updated successfully, but these errors were encountered: