Permalink
Browse files

Adding oauth authentication mechanism.

  • Loading branch information...
1 parent 8a30845 commit aa32a3c9ff711576b8c41a3bdf528b44ac48a78a Andre Rodrigues committed Oct 20, 2012
@@ -62,7 +62,7 @@ exports.init = function(cli) {
context.lvcClient = LinkedRevisionControl.createClient(cli, "github");
- context.lvcClient.authenticate(context.username, context.password); _(); }); }); }); }; var __frame = { name: "__1", line: 33 }; return __func(_, this, arguments, __1, 2, __frame, function __$__1() { context = { subscription: cli.category("account").lookupSubscriptionId(options.subscription), site: { name: name } }; return scm.ensureRepositoryUri(context, __cb(_, __frame, 9, 6, function __$__1() { return promptForGithubCredentials(__cb(_, __frame, 10, 6, function __$__1() { context.flags = { forceRepositorySelection: true }; return context.lvcClient.init(context, __cb(_, __frame, 13, 6, function __$__1() { return context.lvcClient.deploy(context, __cb(_, __frame, 14, 6, _, true)); }, true)); }, true)); }, true)); }); });
+ return context.lvcClient.authenticate(context.username, context.password, __cb(_, __frame, 16, 8, _, true)); }); }); }); }; var __frame = { name: "__1", line: 33 }; return __func(_, this, arguments, __1, 2, __frame, function __$__1() { context = { subscription: cli.category("account").lookupSubscriptionId(options.subscription), site: { name: name } }; return scm.ensureRepositoryUri(context, __cb(_, __frame, 9, 6, function __$__1() { return promptForGithubCredentials(__cb(_, __frame, 10, 6, function __$__1() { context.flags = { forceRepositorySelection: true }; return context.lvcClient.init(context, __cb(_, __frame, 13, 6, function __$__1() { return context.lvcClient.deploy(context, __cb(_, __frame, 14, 6, _, true)); }, true)); }, true)); }, true)); }); });
@@ -62,7 +62,7 @@ exports.init = function (cli) {
}
context.lvcClient = LinkedRevisionControl.createClient(cli, 'github');
- context.lvcClient.authenticate(context.username, context.password);
+ context.lvcClient.authenticate(context.username, context.password, _);
}
});
Oops, something went wrong.

0 comments on commit aa32a3c

Please sign in to comment.