summaryrefslogtreecommitdiffstats
path: root/sdnr/wt/odlux/apps/configurationApp/webpack.config.js
diff options
context:
space:
mode:
authorAijana Schumann <aijana.schumann@highstreet-technologies.com>2021-02-15 18:22:28 +0100
committerAijana Schumann <aijana.schumann@highstreet-technologies.com>2021-02-15 18:23:57 +0100
commit8515052e1a6de2de56effbc61c73d3aa80169a93 (patch)
tree8707b2b587890522b35cd7dd1b54ce4f006f1c3a /sdnr/wt/odlux/apps/configurationApp/webpack.config.js
parentdb20d36689c011333ed7216b64d3e987e473f1ee (diff)
Add OAuth support to odlux
Extend odlux to support oauth, support external login provider for sign-in Issue-ID: CCSDK-3167 Signed-off-by: Aijana Schumann <aijana.schumann@highstreet-technologies.com> Change-Id: Id5772e0026fa7ebda22c41c2620a7868598f41aa
Diffstat (limited to 'sdnr/wt/odlux/apps/configurationApp/webpack.config.js')
-rw-r--r--sdnr/wt/odlux/apps/configurationApp/webpack.config.js35
1 files changed, 22 insertions, 13 deletions
diff --git a/sdnr/wt/odlux/apps/configurationApp/webpack.config.js b/sdnr/wt/odlux/apps/configurationApp/webpack.config.js
index 6349305ac..e3f3b6f19 100644
--- a/sdnr/wt/odlux/apps/configurationApp/webpack.config.js
+++ b/sdnr/wt/odlux/apps/configurationApp/webpack.config.js
@@ -11,6 +11,8 @@ const webpack = require("webpack");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const TerserPlugin = require('terser-webpack-plugin');
+const policies = require('./policies.json');
+
// const __dirname = (path => path.replace(/^([a-z]\:)/, c => c.toUpperCase()))(process.__dirname());
module.exports = (env) => {
@@ -128,47 +130,54 @@ module.exports = (env) => {
stats: {
colors: true
},
+ before: function(app, server, compiler) {
+ app.get('/oauth/policies',(_, res) => res.json(policies));
+ },
proxy: {
"/about": {
- // target: "http://10.20.6.29:48181",
- target: "http://localhost:8181",
+ target: "http://localhost:18181",
secure: false
},
"/yang-schema/": {
- target: "http://localhost:8181",
+ target: "http://localhost:18181",
secure: false
},
- "/oauth2/": {
- // target: "https://10.20.35.188:30205",
- target: "http://localhost:8181",
+ "/oauth/": {
+ target: "http://localhost:18181",
secure: false
},
"/database/": {
- target: "http://localhost:8181",
+ target: "http://localhost:18181",
secure: false
},
"/restconf/": {
- target: "http://localhost:8181",
+ target: "http://localhost:18181",
secure: false
},
"/rests/": {
- target: "http://localhost:8181",
+ target: "http://localhost:18181",
secure: false
},
"/help/": {
- target: "http://localhost:8181",
+ target: "http://localhost:18181",
secure: false
},
"/about/": {
- target: "http://localhost:8181",
+ target: "http://localhost:18181",
secure: false
},
"/tree/": {
- target: "http://localhost:8181",
+ target: "http://localhost:18181",
secure: false
},
"/websocket": {
- target: "http://localhost:8181",
+ target: "http://localhost:18181",
+ ws: true,
+ changeOrigin: true,
+ secure: false
+ },
+ "/apidoc": {
+ target: "http://localhost:18181",
ws: true,
changeOrigin: true,
secure: false