From 8515052e1a6de2de56effbc61c73d3aa80169a93 Mon Sep 17 00:00:00 2001 From: Aijana Schumann Date: Mon, 15 Feb 2021 18:22:28 +0100 Subject: 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 Change-Id: Id5772e0026fa7ebda22c41c2620a7868598f41aa --- sdnr/wt/odlux/framework/webpack.config.js | 47 +++++++++++++++++++++++++------ 1 file changed, 38 insertions(+), 9 deletions(-) (limited to 'sdnr/wt/odlux/framework/webpack.config.js') diff --git a/sdnr/wt/odlux/framework/webpack.config.js b/sdnr/wt/odlux/framework/webpack.config.js index ad5b4cc1b..5d0d8fc9a 100644 --- a/sdnr/wt/odlux/framework/webpack.config.js +++ b/sdnr/wt/odlux/framework/webpack.config.js @@ -43,6 +43,7 @@ module.exports = (env) => { entry: { app: [ + "./run.ts", "./app.tsx", "./services", "./components/objectDump", @@ -180,7 +181,7 @@ module.exports = (env) => { ], devServer: { - public: "http://10.20.6.29:3100", + public: "http://localhost:3100", contentBase: distPath, compress: true, @@ -198,35 +199,63 @@ module.exports = (env) => { colors: true }, proxy: { + "/about": { + // target: "http://10.20.6.29:48181", + target: "http://sdnr:8181", + secure: false + }, + "/yang-schema/": { + target: "http://sdnr:8181", + secure: false + }, + "/oauth/": { + // target: "https://10.20.35.188:30205", + target: "http://sdnr:8181", + secure: false + }, "/oauth2/": { - target: "http://10.20.6.29:48181", + // target: "https://10.20.35.188:30205", + target: "http://sdnr:8181", secure: false }, "/database/": { - target: "http://10.20.6.29:48181", + target: "http://sdnr:8181", secure: false }, "/restconf/": { - target: "http://10.20.6.29:48181", + target: "http://sdnr:8181", + secure: false + }, + "/rests/": { + target: "http://sdnr:8181", secure: false }, "/help/": { - target: "http://10.20.6.29:48181", + target: "http://sdnr:8181", secure: false }, - "/about": { - target: "http://10.20.6.29:48181", + "/about/": { + target: "http://sdnr:8181", + secure: false + }, + "/tree/": { + target: "http://sdnr:8181", secure: false }, "/websocket": { - target: "http://10.20.6.29:48181", + target: "http://sdnr:8181", + ws: true, + changeOrigin: true, + secure: false + }, + "/apidoc": { + target: "http://sdnr:8181", ws: true, changeOrigin: true, secure: false } } } - }]; } -- cgit 1.2.3-korg