added github.html

This commit is contained in:
coderaiser 2012-12-18 07:18:01 -05:00
parent ebb023c1ba
commit e613da4a73

22
html/auth/github.html Normal file
View file

@ -0,0 +1,22 @@
<!doctype html>
<html>
<head></head>
<body>
<script>
(function(){
"use strict";
if(window.opener){
var cloudcmd = window.opener.CloudCommander;
cloudcmd.getConfig(function(pConfig){
var GitHub_ID = pConfig.github_key;
window.location =
'https://github.com/login/oauth/authorize?client_id=' +
GitHub_ID + '&&scope=repo,user,gist';
});
}
})();
</script>
</body>
</html>