This patch basically provides complete credential support for EGit and is similar to the AwtCredentialsProvider for the jgit commandline app. So it may indeed fix http authentication issues (of which I am not aware).

It does fix ssh authentication, at least for me. The point is EclipseSshSessionFactory.configure(), where this patch will not overwrite the existing UserInfo (for me always an instance of CredentialsProviderUserInfo) anymore. 

If the session factory installs the UserInfoPrompter, the jsch authentication dialog will be used. And this is the cause for those many authentication dialogs, because username and password are not remembered anywhere.

(And sorry for all that whitespace in the patch, I had disabled the save-actions in Eclipse because of some other problem I had with them).