Add auth for private, non-GitHub repos (#2826)

This is a fix for issue #2826, Authentication for private repositories via https.