mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
added github.html
This commit is contained in:
parent
ebb023c1ba
commit
e613da4a73
1 changed files with 22 additions and 0 deletions
22
html/auth/github.html
Normal file
22
html/auth/github.html
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue