I wish to use a simple command line client (such as the official git client) to clone branches from github as part of a deploy tool.
For security, I do not wish to use basic (username/password) authentication. As I am already using github's oauth-token based Auth headers in my app, I was wondering if there is a command-line app that can use oauth tokens to authenticate to github.
Thanks!
Update Sep 2012
Github now accepts the use of auth tokens using any git client.
You can get a oauth token for github using these instructions, here's a practical demo using Node.js and superagent.
var GITHUB_API_ENDPOINT = 'https://api.github.com/'
superagent
.post(GITHUB_API_ENDPOINT+'authorizations')
.auth('username', 'notactuallymypassword')
.send({ scopes: 'repo', note: 'Social Ops Deployer' })
.end(function(res){
if (res.ok) {
console.log('yay got ' + JSON.stringify(res.body));
} else {
console.log('Oh no! error ' + res.text);
}
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With