Eclipse Egit and GitHub authentication deprecation - eclipse

I'm using Eclipse (Egit) and GitHub and I'm receiving this notice:
Hi,
You recently used a password to access the repository with git using JGit/5.10.0.202012080955-r.
Basic authentication using a password to Git is deprecated and will soon no longer work. Visit https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information around suggested workarounds and removal dates.
Currently I'm using HTTPS connection with user and password and probably I have to switch to a HTTPS token, but how can I configure Eclipse/Egit for an HTTPS token?

Github deprecated the authentication of using your personal account password. You will need to change your git credentials in Eclipse to use a personal access token instead of using your Github account password.
Link for creating a personal access token.
Link for changing your credentials in Eclipse.

Related

Deprecated password authentication with github warning

Hello community can you please help me out, not very knowledgeable in this area
I got an email from git saying that personal password is no longer gonna be supported and that team city was using it so I went into GitHub and generated a token and added to the VCS in the, after our next deploy I got an email from GitHub saying, you are still using the password dummy, so I asked our server guy to update TeamCity as we were several versions behind, so he did and we ran a deploy again today. I pay a visit to the VCS again and saw my Authentication method was set to Password/Token. I got no email from GIT this time saying I was dummy and "Developer Settings/Personal access tokens" mention TeamCity has used it but TeamCity keeps saying this ▼▼▼▼ any ideas ?? Thanks.
git) https://github.com//xxxxxxxxxx is using deprecated password authentication with github.com and will soon stop working
Please consider switching to either personal access token or to SSH private key authentication.
Edit VCS root
Solution as mentioned in the error.
It is also mentioned on TeamCity documentation
You may either use SSH priv/pub keys as authentication or "Personal Access Token".
I can tell by git) https://github.com//xxxxxxxxxx that you are currently using HTTPS instead of SSH to source your VCS, so the most similar solution is GitHub Private Access Token (linked: how-to)
Go to Setting > Developer Settings > Personal Access Token and click "Generate New".
If this is a private GitHub repo, you will need to tick the "repo" scope.
On your TeamCity VCS change the password to be the Personal Access Token you generated.
Tip: since you can not view the PAT after generating nor after using on the VCS, it is recommend to set the PAT as a root configuration variable, so you can call it on this VCS, build features, or other future use.

Cannot login to Github from Pycharm settings

I'm trying to login to Github from Pycharm using either Account or Token and both methods are giving me a timeout error.
I can see on my Github security page that there is a request but it isn't asking for my Two Factor Authentication as suggested in the Pycharm docs.
Screenshot of my Pycharm:-
Screenshot of my Github security:-
Create an Application Token in Github, and enter in Pycharm.
In PyCharm settings > VCS > Github > change authentication to Token.

Where do I enter my Visual Studio Team Services username and access token in GitHub Desktop?

A colleague has been having problems logging in to our Git repository hosted in Visual Studio Team Services (was Visual Studio Online) using GitHub Desktop on the Mac. He use to have access but now cannot fetch, push, etc. Yesterday my VSTS token failed and GitHub Desktop presented me with a login window where I entered a new personal access token that I generated on our project's VSTS portal. So today I thought I'd show him how to do that. I started by revoking my personal access token in the VSTS portal. Now I cannot get access nor can I see where to enter new credentials!
When I click 'sync' in GitHub Desktop here's what I see:
Authentication Failed
You may not have permission to access VisualCollectionsIOS. Check
Preferences to make sure you’re still logged in.
But the preferences have nowhere to add my VSTS username and access token.
Where in GitHub Desktop can I enter my username and access token for my Git repository hosted in a team project in VSTS?
You can update the credentials from OSX Keychain. Check the steps in this link for reference: Updating credentials from the OSX Keychain. Instead of searching for the github.com password, as the reference suggests, search for the visualstudio.com password. When the visualstudio.com password entries are deleted GitHub Desktop will prompt you for your username and personal access token again.

How to give the push access to github repo without giving the github account credentials?

I wrote the tool which use the one github repo as a cloud storage.
I need to give the write (push) access for this tool to one github repo, but I do not want to use the github user credentials (user name and password), because anyone can use it to logon to github and change the credentials or delete the repo.
You can generate an OAuth authorization for your specific app.
See an example here: it supposed you have registered you app in your account.

gedmo/doctrine-extensions asking for a token when installing via composer

Is anyone else having an issue gedmo/doctrine-extensions installing via composer?
The repository is public so I am not sure why it's saying it is a private repo
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+computername+2015-09-04+1040
to retrieve a token. It will be stored in "/location/.composer/auth.json" for future use by Composer.
Token (hidden):
In short: you are hitting the API rate limit, because you don't auth against it.
The Github API has a very low rate limit, so if you install lots of packages it will at some point fail and ask you for your login/password.
If you prefer to not provide your GitHub credentials to Composer, you can manually create a token using the following procedure:
Create an OAuth token on GitHub (https://github.com/blog/1509-personal-api-tokens).
Add it to the configuration running composer config -g github-oauth.github.com <oauthtoken>
Now Composer should install/update without asking for authentication.
git install your system
close cmd (command promt)