Authentication Fails when Integrating Stash with Github for Windows GUI Client
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.