-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea3e39e
commit bdbdef2
Showing
5 changed files
with
76 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"name": "Custom Login Sample", | ||
"description": "Sample that demonstrates use of Custom Login/Embedded Sign-in Widget", | ||
"repository": "https://github.com/okta/samples-js-vue/custom-login", | ||
"keywords": ["oidc", "identity", "security", "authentication"], | ||
"success_url": "/", | ||
"env": { | ||
"ISSUER": { | ||
"description": "Issuer URL for your org", | ||
"value": "https://qa-st-cda1.oktapreview.com/oauth2/default" | ||
}, | ||
"CLIENT_ID": { | ||
"description": "Client ID for your application", | ||
"value": "0oa1mb3urzAsFdkNc0x7" | ||
}, | ||
"NPM_CONFIG_PRODUCTION": { | ||
"description": "npm config production", | ||
"value": "false" | ||
}, | ||
"OKTA_TESTING_DISABLEHTTPSCHECK": { | ||
"description": "Okta test disable https check", | ||
"value": "false" | ||
}, | ||
"USE_INTERACTION_CODE": { | ||
"description": "Use interaction code flow", | ||
"value": "true" | ||
}, | ||
"YARN_PRODUCTION": { | ||
"description": "Yarn production", | ||
"value": "false" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const express = require('express'); | ||
const serveStatic = require("serve-static"); | ||
const path = require('path'); | ||
|
||
const app = express(); | ||
|
||
//here we are configuring dist to serve app files | ||
app.use("/", serveStatic(path.join(__dirname, "/dist"))); | ||
|
||
// this * route is to serve project on different page routes except root `/` | ||
app.get(/.*/, function(req, res) { | ||
res.sendFile(path.join(__dirname, "/dist/index.html")); | ||
}); | ||
|
||
const port = process.env.PORT || 8080; | ||
app.listen(port); | ||
console.log(`app is listening on port: ${port}`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters