cloudcmd/html/auth/github.html
2014-06-17 10:12:16 -04:00

26 lines
No EOL
841 B
HTML

<!DOCTYPE html>
<html>
<head></head>
<body>
<script>
(function() {
"use strict";
var opener = window.opener;
if (opener) {
DOM.Files.get('modules', function(error, modules) {
var Util = opener.Util,
Storage = Util.findObjByNameInArr(modules, '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>