Intellij Github - Authentication Failed
Answered
Hi All,
for some time i've problem with GitHub integration.... everytime i try to execute a remote operation like git pull or git push i get an Authentication Failed ( the same operation executed via command line works ).
What i did:
- tried to remove and re-add my account under Settings > Version Control > Github
- clicked on Add Account... this page https://account.jetbrains.com/github/oauth/intellij/authorize appeared and after that i saw in the settings my account info
Honestly i don't remember what i did when i configured for the first time Idea, but it seems that at some point it stopped working ... maybe some update?
Any suggestions?
Some usefull info:
* IntelliJ IDEA 2020.3 (Ultimate Edition)
* OS: Win10
* my GitHub account is configured to login with a two factor auth
Thanks in advance.
Ale
Please sign in to leave a comment.
Please report at https://youtrack.jetbrains.com/newIssue?project=IDEA with the logs attached (Help | Collect Logs and Diagnostic Data).
FYI i solved my problem.... honestly I don't understand why, but enabling the "User credential helper" flag under Version Control> Git the problem is solved :)
Thanks
Ale
Had the same problem and enabling "Use credential helper" solved my issue too.
Note that when you enable credential helper, the authentication for git operations is entire handled on the git side, by the corresponding helper - the account from the IDE settings is not used.
In 2020.2, GItHub authentication moved to oauth, and the failures might be caused by the oauth apps restrictions in the GitHub organization that own the repo. See https://docs.github.com/en/github/setting-up-and-managing-your-github-user-account/requesting-organization-approval-for-oauth-apps
I was having the same problem with 2020.3.2 (Community Edition) after many years of no problems. I also had to enable "Use credential helper" under Preferences... > Version Control > Git. This sounds like a possible bug that was recently introduced.
I tried logging in via GitHub and it took me to a page to login, I did it, but I still had errors. I tried again and then the web page got stuck looking for 127.0.0.1. I assume that is the connection to IntelliJ running on my computer. I was using Google Chrome 88.
@...
May I ask you to submit a ticket?
And please reproduce the behavior and attach logs to a ticket as per:
https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files
Thanks for the solution, "Use credential helper" was so helpful for me too.
“Use credential helper" in Settings also worked on my IDEA 2023.3 Ultimate, thank you!