Authentication Fails when Integrating Stash with Github for Windows GUI Client

Troubleshooting Git

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

GitHub for Windows GUI Client is being used to manage Git repositories and then integrate with Stash. When attempting to publish a commit, it will ask for authentication showing local server name in the box and requesting a username/password but nothing happens after entering this information. It looks like it is trying to contact Stash because it will give a fail message after a few attempts and then Stash UI requires to use the captcha option to get back into the user account.

Similar activity is reported in Stash logs:

2013-01-24 09:17:40,783 DEBUG [http-7990-6] 557x1793209x2 172.27.5.113 "GET /scm/TQ/data.git/info/refs HTTP/1.1" c.a.s.i.s.CustomSecurityContextPersistenceFilter SecurityContextHolder now cleared, as request processing completed
2013-01-24 09:17:40,908 DEBUG [http-7990-6] 557x1793210x2 172.27.5.113 "GET /scm/TQ/data.git/info/refs HTTP/1.1" c.a.s.internal.user.UserServiceImpl Authenticating user <Username>
2013-01-24 09:17:43,455 DEBUG [http-7990-6] <Username> 557x1793210x2 k4fcng 172.27.5.113 "GET /scm/TQ/data.git/info/refs HTTP/1.1" c.a.s.i.s.CustomSecurityContextPersistenceFilter SecurityContextHolder now cleared, as request processing completed
2013-01-24 09:17:43,533 DEBUG [http-7990-4] chet_watkins 557x1793208x2 19rp0j 10.2.164.104 "GET /admin/logging HTTP/1.1" c.a.s.i.s.CustomSecurityContextPersistenceFilter SecurityContextHolder now cleared, as request processing completed

Cause

GitHub's clients cache git usernames/passwords. Unfortunately, the GitHub's GUI Client for Windows doesn't seem to handle changed passwords. After showing the "login required" dialog, it doesn't seem to use the new password.

Resolution

The GitHub for Windows command line client, Git Shell, doesn't have this problem. Open Git Shell, go to your repository, and try any server operation (git fetch, for instance). It will ask for your username and password. Once you enter them, the GUI client should work fine (it uses the same username/password cache as the command line client).
Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.