mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 10:14:13 +00:00
setted up auth on GitHub
This commit is contained in:
parent
ecf8080b0d
commit
3f13e22ff7
5 changed files with 76 additions and 34 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue