Using personal access. (Support for password authentication was removed on August 13, 2021)

I’m still getting this error:

Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

I’ve Created Personal Access Token on Github and updated the Windows Credentials.

Me too. I generated a PAT and replaced the old PW in my .git-credentials file when this change was announced. Seemed to work, but come Aug 13 it fails. Using cli git in Ubuntu.
There are info on generating a PAT, but no clear info how to handle it and make this transition. I have been browsing and searching, but only been redirected in circles so far.

The only way I found to work is to add explicit full “username:PAT” to the URLs in my remote origin defs. But there must be a better way to do this in ONE place, not on every remote origin def for each and every repo.
/A

Yeh I also tried updating the URL to use: https://<USERNAME>:<TOKEN>@<GIT_URL>.git
But still no joy. :frowning:

Oh, forgot to say I also had to change remote origin URL format from:
https://github.com/<username>/<repo>.git
to:
https://<username>:<token>@github.com/<username>/<repo>.git
/A

1 Like

Thanks after trying the same thing many times it worked! :woman_shrugging:

  1. Creating a PAT key via GitHub settings.
  2. Using ‘Basic Auth’ with new PAT password in ST. (This step wasn’t working for me, only Auth login was working)
  3. Then updating repo URL with: https://<USERNAME>:<TOKEN>@<GIT_URL>.git