cloudcmd/html/auth/github.html
2013-11-21 15:23:55 +00:00

27 lines
No EOL
886 B
HTML

<!DOCTYPE html>
<html>
<head></head>
<body>
<script>
(function(){
"use strict";
var lOpener = window.opener;
if(lOpener){
var CloudCmd = lOpener.CloudCmd;
CloudCmd.getModules(function(pModules){
var Util = lOpener.Util,
lStorage = Util.findObjByNameInArr(pModules, 'storage'),
lGitHub = Util.findObjByNameInArr(lStorage, 'GitHub'),
GitHub_ID = lGitHub && lGitHub.key;
window.location =
'https://github.com/login/oauth/authorize?client_id=' +
GitHub_ID + '&&scope=repo,user,gist';
});
}
})();
</script>
</body>
</html>