close

[Solved] Password authentication is temporarily disabled as part of a brownout

Hello Guys, How are you all? Hope You all Are Fine. Today When I am trying to push my code I got this error Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead in Github. So Here I am Explain to you all the possible solutions here.

Without Wasting your time, Lets start This Article to Solve This Error.

How Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead Error Occurs ?

I am trying to push my code on my GitHub account. But I found following error. I am using that account from 6 month but how this error occurs ? Here is My Stacktrack

Username for 'https://github.com': milan-patel
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.

why this error occurs ? Why My password authentication is disabled ?

How To Solve Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead Error ?

Question: How To Solve Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead Error?
Answer: As Github earlier said we will no longer accept account passwords when authenticating with the REST API and will require the use of token-based authentication to solve Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead of this error you just need to create a new token and then Update the remote URL. That’s It. Your error will be solved.

Solution 1: create a Token

First Of all, Don’t worry and Read What Github Said about Token authentication requirements for API and Git operations

As previously announced, beginning November 13th, 2020, we will no longer accept account passwords when authenticating with the REST API and will require the use of token-based authentication (e.g., personal access, OAuth, or GitHub App installation token) for all authenticated API operations on GitHub.com. The solution is Just to Create a new token From these Steps.

How to create a Token ?

Step 1 Delete your previous credentials from your system by running this command in your terminal.
Windows: git credential-manager reject https://github.com
macOS: git credential-osxkeychain erase https://github.com

Step 2 First of all Open your GitHub account in your browser.

Step 3 Then In the upper-right corner of any page, click your profile photo, then click Settings.

Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead

Step 4 Now In the left sidebar, click Developer settings.

Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead

Step 5 In the left sidebar there are option of Personal access tokens. click Personal access tokens.

Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead

Step 6 Click on generate new Token

Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead

Step 7 Give name to your token and check mark permission you want give access.

Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead

Step 8 Click on Generate token.

Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead

Step 9 Click to copy the token to your clipboard. And Just Remember For security reasons, after you navigate off the page, you will not be able to see the token again. So Don’t Forgot to copy your new token.

Step 10 Update remote URL git remote set-url origin https://<tour_new_token>@github.com/<git_url>

Step 11 pull once: git pull https://<token>@<git_url>.git [Optional]

Thats It. Now you will not face any error like that.

Solution 2: delete your previous credentials

  1. First Of all, delete your previous credentials from your system.
    If you are using Windows: git credential-manager reject https://github.com
    If you are on macOS: git credential-osxkeychain erase https://github.com
  2. Then Just create a new token. Don’t know how to create a new token? Just read this How to create a token?
  3. When you are trying to use github push, you’ll be prompted for username and password. Enter your GitHub username in the username field and paste the generated token you copied from the previous step

Here Is Video Guide on How to generate token ?

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also Read

Please Rate Our Solution to Motivate Us For Give Our Best

Leave a Comment