diff --git a/src/webportal/config/webpack.common.js b/src/webportal/config/webpack.common.js
index 14c2e68a69..593a947583 100644
--- a/src/webportal/config/webpack.common.js
+++ b/src/webportal/config/webpack.common.js
@@ -29,7 +29,6 @@ const helpers = require('./helpers');
const title = 'Platform for AI';
const version = require('../package.json').version;
-const authnMethod = require('../server/config/index.js').authnMethod;
const FABRIC_DIR = [
path.resolve(__dirname, '../src/app/job/job-view/fabric'),
path.resolve(__dirname, '../src/app/home'),
@@ -41,7 +40,6 @@ function generateHtml(opt) {
return new HtmlWebpackPlugin(Object.assign({
title: title,
version: version,
- authnMethod: authnMethod,
template: './src/app/layout/layout.component.ejs',
minify: {
collapseWhitespace: true,
diff --git a/src/webportal/server/config/index.js b/src/webportal/server/config/index.js
index d6d2a14499..5293aeccdb 100644
--- a/src/webportal/server/config/index.js
+++ b/src/webportal/server/config/index.js
@@ -28,7 +28,6 @@ let config = {
env: process.env.NODE_ENV,
logLevel: process.env.LOG_LEVEL,
serverPort: process.env.SERVER_PORT,
- authnMethod: process.env.AUTHN_METHOD,
};
// define config schema
@@ -44,9 +43,6 @@ const configSchema = Joi.object().keys({
.min(8000)
.max(65535)
.default(9286),
- authnMethod: Joi.string()
- .allow(['basic', 'OIDC'])
- .default('basic'),
}).required();
const {error, value} = Joi.validate(config, configSchema);
@@ -56,4 +52,4 @@ if (error) {
config = value;
// module exports
-module.exports = config;
\ No newline at end of file
+module.exports = config;
diff --git a/src/webportal/src/app/layout/layout.component.ejs b/src/webportal/src/app/layout/layout.component.ejs
index 12a06abfc5..b8ac262d5e 100644
--- a/src/webportal/src/app/layout/layout.component.ejs
+++ b/src/webportal/src/app/layout/layout.component.ejs
@@ -93,13 +93,11 @@
• K8s Dashboard
- <% if (htmlWebpackPlugin.options.authnMethod !== 'OIDC') { %>
-
- <% } %>
+