From fba63e0fa442ed8e5fbe12c4c34260b613495092 Mon Sep 17 00:00:00 2001 From: Markus Edenhauser <1720843+maxmarkus@users.noreply.github.com> Date: Wed, 15 Apr 2020 16:29:21 +0200 Subject: [PATCH 1/6] fixes for oidc --- core/webpack-common-plugins.js | 10 - core/webpack.config.js | 1 - plugins/auth/public/auth-oidc/.gitignore | 2 + .../public/auth-oidc/silent-callback.html | 2 +- plugins/auth/src/auth-oidc/index.js | 46 ++++- .../src/auth-oidc/webpack-extra.config.js | 18 ++ plugins/package-lock.json | 193 +++++++++++++++--- plugins/package.json | 2 + plugins/webpack.config.js | 12 +- scripts/oidc-mockserver/clients-config.json | 2 +- .../src/luigi-config/extended/auth.js | 4 +- 11 files changed, 241 insertions(+), 51 deletions(-) delete mode 100644 core/webpack-common-plugins.js create mode 100644 plugins/auth/public/auth-oidc/.gitignore create mode 100644 plugins/auth/src/auth-oidc/webpack-extra.config.js diff --git a/core/webpack-common-plugins.js b/core/webpack-common-plugins.js deleted file mode 100644 index a3ab9488a3..0000000000 --- a/core/webpack-common-plugins.js +++ /dev/null @@ -1,10 +0,0 @@ -const CopyWebpackPlugin = require('copy-webpack-plugin'); - -module.exports = { - copyWebpackPlugin: new CopyWebpackPlugin([ - { - from: 'node_modules/oidc-client/dist/oidc-client.min.js', - to: 'auth/oidc/' - } - ]) -}; diff --git a/core/webpack.config.js b/core/webpack.config.js index 1f6b7fa3df..44ae67c557 100644 --- a/core/webpack.config.js +++ b/core/webpack.config.js @@ -4,7 +4,6 @@ const CleanWebpackPlugin = require('clean-webpack-plugin'); const BundleAnalyzerPlugin = require('webpack-bundle-analyzer') .BundleAnalyzerPlugin; const commonRules = require('./webpack-common-rules'); -const commonPlugins = require('./webpack-common-plugins'); const exec = require('child_process').exec; const fundamentalStyles = require('./fundamentalStyleClasses'); diff --git a/plugins/auth/public/auth-oidc/.gitignore b/plugins/auth/public/auth-oidc/.gitignore new file mode 100644 index 0000000000..bdffbb5799 --- /dev/null +++ b/plugins/auth/public/auth-oidc/.gitignore @@ -0,0 +1,2 @@ +# vendor +oidc-client.min.js \ No newline at end of file diff --git a/plugins/auth/public/auth-oidc/silent-callback.html b/plugins/auth/public/auth-oidc/silent-callback.html index d538e28fce..de59ae9a1b 100644 --- a/plugins/auth/public/auth-oidc/silent-callback.html +++ b/plugins/auth/public/auth-oidc/silent-callback.html @@ -1,4 +1,4 @@ - +