forked from patientsknowbest/fake-oauth2-server
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserver.js
More file actions
24 lines (19 loc) · 733 Bytes
/
Copy pathserver.js
File metadata and controls
24 lines (19 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
* Created by erosb on 2017.04.26..
*/
require('dotenv').config();
const PORT = process.env.PORT || 8282;
const app = require("./app");
const server = app.app.listen(PORT);
console.log("Running on http://localhost:" + PORT);
console.log("\texpected Client ID: " + app.EXPECTED_CLIENT_ID);
console.log("\texpected Client Secret: " + app.EXPECTED_CLIENT_SECRET);
console.log("\tauthorization endpoint: " + app.AUTH_REQUEST_PATH);
console.log("\taccess token endpoint: " + app.ACCESS_TOKEN_REQUEST_PATH);
console.log("\tuserinfo request url: " + app.USERINFO_REQUEST_URL);
console.log("\tredirect URLs: " + app.permittedRedirectURLs());
process.on("SIGTERM", function() {
server.close(() => {
process.exit(0);
});
});