Fix Password Authentication GitHub
Fix Password Authentication GitHub
Save
https://levelup.gitconnected.com/fix-password-authentication-github-3395e579ce74 1/7
7/3/23, 22:16 How to Fix Support for password authentication was removed on GitHub | Level Up Coding
Introduction
In July 2020, GitHub announced their intent to require users to use token-based
authentication in order to perform certain (authenticated) Git operations. Going
180 10
forward and as of the 13th of August 2021, account passwords are no longer
accepted when authenticating with the REST API.
For instance, if you attempt to push on the remote server using password
authentication the operation will fail with the following message:
The recent changes affect the command line access to Git as well as any services
accessing GitHub repositories directly with the use of password. On the other hand,
if you have already enabled the two-factor authentication you are required to use a
token-based authentication (or SSH-based authentication) and therefore you
shouldn’t be seeing the error mentioned above.
In today’s article we will discuss we will go through a quick step by step guide that
will help you configure Access Tokens on GitHub that we’ll allow you to perform
token-based authentication when executing Git operations that require you doing
so.
Given that you are attempting to perform password-based authentication, the push
command will fail with the authentication fatal error shown above.
Click Settings
Add a note that will help you identify the scope of the access token to be
generated
Choose the Expiration period from the drop down menu (Ideally you should
avoid choosing the No Expiration option)
Finally, select the scopes you want to grant the corresponding access to the
generated access token. Make sure to select the minimum required scopes
otherwise you will still have troubles performing certain Git Operations.
https://levelup.gitconnected.com/fix-password-authentication-github-3395e579ce74 3/7
7/3/23, 22:16 How to Fix Support for password authentication was removed on GitHub | Level Up Coding
By now, you should have generated your personal access token successfully and the
following message should be visible on your screen.
Source: Author
Underneath that message, you should also be able to see your personal access
token. Make sure to copy it as we will need it in the following step(s).
<githubtoken> with the personal access token you have copied in the previous
step
https://levelup.gitconnected.com/fix-password-authentication-github-3395e579ce74 4/7
7/3/23, 22:16 How to Fix Support for password authentication was removed on GitHub | Level Up Coding
Final Thoughts
In today’s short guide we discussed about the recent changes made on GitHub that
now require users to perform token-based authentication as password-based
authentication are no longer accepted.
Additionally, we went through a step-by-step guide that will help you configure your
GitHub Access Tokens that will allow you to properly authenticate Git operations.
Become a member and read every story on Medium. Your membership fee directly
supports me and other writers you read. You’ll also get full access to every story on
Medium.
https://levelup.gitconnected.com/fix-password-authentication-github-3395e579ce74 5/7
7/3/23, 22:16 How to Fix Support for password authentication was removed on GitHub | Level Up Coding
Level Up Coding
Thanks for being a part of our community! Level Up is transforming tech recruiting.
Find your perfect job at the best companies.
By signing up, you will create a Medium account if you don’t already have one. Review
our Privacy Policy for more information about our privacy practices.
https://levelup.gitconnected.com/fix-password-authentication-github-3395e579ce74 6/7
7/3/23, 22:16 How to Fix Support for password authentication was removed on GitHub | Level Up Coding
https://levelup.gitconnected.com/fix-password-authentication-github-3395e579ce74 7/7