I'd like to use the OAuth token in the URL for project generation from template. The URL format is documented
here and has the following format:
Alternatively we could also supply a token in a different way like .netrc. Obviously this does not work. As per the 0.6.9 code
here we hardcode the jgit CredentialsProvider to
ConsoleCredentialsProvider. So no matter what URL is used or a .netrc file is provided or not, it will always prompt for the user/password. It would not be too hard to implement a URLCredentialsProvider and chain it in front of ConsoleCredentialsProvider.
I see an oauth_authorization branch but it seems to be rather stale and not been touched for 3 years. I also see the jgit dependency in 0.6.9 goes to this version: 1.3.0.201202151440-r while jgit is already at 4.0. Version 3.5 and later provides a NetRCCredentialsProvider to parse the credentials out of a .netrc file. The same version also added ChainingCredentialsProvider allowing the use of multiple providers. So instead of implementing everything ourselves, it may be worth upgrading jgit to the latest to enjoy the new features provided on github.
Would this be of interest?
Thanks,
-Akara