cloudcmd/html/auth/github.html
2014-01-29 09:43:04 -05:00

28 lines
No EOL
896 B
HTML

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