oauth_broker initial code 51/139451/1
authorSang-Hun Chung <sanghun.chung@samsung.com>
Wed, 19 Jul 2017 04:37:51 +0000 (13:37 +0900)
committerSang-Hun Chung <sanghun.chung@samsung.com>
Wed, 19 Jul 2017 04:37:51 +0000 (13:37 +0900)
Change-Id: I1dfb5ee6c1391ec5b5c6ea9c6d63bbe27af2195f

test/oauth_broker/oauth_redirect_uri_handler.js
test/oauth_broker/req_auth.html

index 8540d035164b383471adf6ffe0f6b714c0a298bf..eb467431f624c7b5f505eaa0797773538cfd674f 100755 (executable)
@@ -15,6 +15,7 @@ var host_ip = require("ip");
 app.use(express.static('public'));
 app.use(bodyParser.urlencoded({ extended: false }));
 
+// this enables desktop to accept redirect_uri from browser
 var server = app.listen(PORT, function () {
         var host = host_ip.address();
         var port = server.address().port;
index 275988c5264dacdd26f42c7a31b626c23ac79158..055177c418c1fb07d63f84be67286e4796141f51 100755 (executable)
@@ -1,11 +1,10 @@
 <!DOCTYPE html>
 <html>
 <body>
-
 <p>Click the button to send req_auth to GITHUB.</p>
 
 <button onclick="reqAuthToGithub()">GITHUB</button>
-
+<!-- this page acts as client app in mobile phone, and will be replaced  -->
 <script>
 function reqAuthToGithub() {
     window.open("https://github.com/login/oauth/authorize?client_id=e6bd5594e38b7f268af1&redirect_uri=http://127.0.0.1:8000/oauth_callback");