cloudcmd/html/auth/github.html
2012-12-18 07:18:01 -05:00

22 lines
No EOL
650 B
HTML

<!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>