setted up auth on GitHub

This commit is contained in:
coderaiser 2012-11-16 06:44:27 -05:00
parent ecf8080b0d
commit 3f13e22ff7
5 changed files with 76 additions and 34 deletions

View file

@ -69,6 +69,16 @@ var CloudCommander, Util, DOM, $, Github;
if ( Util.isContainStr(lCode, '?code=') ){
lCode = lCode.replace('?code=','');
$.ajax(
{type:'put',
url:'/api/v1/auth',
data: lCode,
success: function(pDate){
console.log(pDate);}
});
/*
$.post("https://github.com/login/oauth/access_token",{
client_id : CLIENT_ID,
client_secret : CLIENT_SECRET,
@ -80,6 +90,7 @@ var CloudCommander, Util, DOM, $, Github;
//GithubStore.Login(lToken);
console.log(pDate);
}, "json");
*/
}
else
cloudcmd.Auth();