Change-Id: I1dfb5ee6c1391ec5b5c6ea9c6d63bbe27af2195f
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;
<!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");