Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead [duplicate]
I was using a username password for pushing my code. It was working for several months, but suddenly I'm not able to do it and am getting this error:
Username for 'https://github.com': shreyas-jadhav
Password for 'https://[email protected]':
remote: Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead.
remote: Please see https://github.blog/2020-07-30-token-authentication-requirements-for-api-and-git-operations/ for more information.
Please note that the link doesn't help. Even using the generated token doesn't help.
Moderator Note: This is part of a planned and soon-to-be permanent service change by GitHub
Solution 1:
-
Generate a new token from GitHub's developer settings
-
Update the remote URL:
git remote set-url origin https://<token>@github.com/<Git_URL>
-
Pull once:
git pull https://<token>@<Git_URL>.git
And you are good to go.
Solution 2:
The previously accepted answer, Kusal Shrestha's, does the job, but it is not safe because we store the token in plain text.
Storing it in the keychain is the better approach in my honest opinion.
For Visual Studio Code please read crg's answer.
For Windows:
You can try the @Venryx comment below, but I haven't tested it.
For Mac:
I just faced this issue now
As suggested, I went to the development settings by following this URL and generated a token.
Then I went to my key chain access in my Mac:
I deleted (all) the row for GitHub
Now I went to the terminal and pushed dummy code
git push
Terminal asked me to enter the email and password for my account.
I entered my email, and, for the password, I entered the token that I generated earlier.
And it started to work again.