DEV Community

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

Posted on

1

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

Recently, everyone is getting this message from Github.

So, Github has removed the support for password authentication and now we have to use Personal Access Token (PAT) in place of passwords to authenticate ourselves.

Message

Let's see how this works and move on to our lives!

  • Go to your settings
    Settings

  • Select Developer Settings
    Developer Settings

  • Select Personal Access Token and click on Generate new token
    Genrate new token

  • Select expiration duration and scopes for the token.
    Create Token

  • Once token is created make sure to copy your token to somewhere safe because you won't be able to see it again.
    If you lost it, you will have to create a new one.
    Token Created

  • Now, you can use your PAT in place of your password and your code will be pushed.
    Code pushed

If you don't want to enter your PAT every time, you can save your git credentials in cache.

git config --global credential.helper cache
Enter fullscreen mode Exit fullscreen mode

That's it, now we can get back to our bugs peacefully!

Image of Datadog

The Future of AI, LLMs, and Observability on Google Cloud

Datadog sat down with Google’s Director of AI to discuss the current and future states of AI, ML, and LLMs on Google Cloud. Discover 7 key insights for technical leaders, covering everything from upskilling teams to observability best practices

Learn More

Top comments (1)

Collapse
 
arunanshub profile image
Arunanshu Biswas

An even better solution exists! "Encrypt the credentials with GPG and store it".

Check this for more info:

The project: arunanshub/git-credential-netconf

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay