From cdd144237f58a2c00c3ced8ceac4a9c9007ac3af Mon Sep 17 00:00:00 2001 From: ayyoob Date: Thu, 12 Jan 2017 19:09:01 +0530 Subject: [PATCH] removed unused parameter --- .../src/main/webapp/WEB-INF/web.xml | 4 ---- .../src/main/webapp/WEB-INF/web.xml | 5 ----- .../src/main/webapp/WEB-INF/web.xml | 5 ----- .../src/main/webapp/WEB-INF/web.xml | 20 ------------------- .../framework/WebappAuthenticationValve.java | 7 +------ 5 files changed, 1 insertion(+), 40 deletions(-) diff --git a/components/apimgt-extensions/org.wso2.carbon.apimgt.application.extension.api/src/main/webapp/WEB-INF/web.xml b/components/apimgt-extensions/org.wso2.carbon.apimgt.application.extension.api/src/main/webapp/WEB-INF/web.xml index e771ee6c09..9850eb5da5 100644 --- a/components/apimgt-extensions/org.wso2.carbon.apimgt.application.extension.api/src/main/webapp/WEB-INF/web.xml +++ b/components/apimgt-extensions/org.wso2.carbon.apimgt.application.extension.api/src/main/webapp/WEB-INF/web.xml @@ -35,10 +35,6 @@ CXFServlet /* - - isAdminService - false - doAuthentication true diff --git a/components/certificate-mgt/org.wso2.carbon.certificate.mgt.api/src/main/webapp/WEB-INF/web.xml b/components/certificate-mgt/org.wso2.carbon.certificate.mgt.api/src/main/webapp/WEB-INF/web.xml index 93933546b5..62a814568e 100644 --- a/components/certificate-mgt/org.wso2.carbon.certificate.mgt.api/src/main/webapp/WEB-INF/web.xml +++ b/components/certificate-mgt/org.wso2.carbon.certificate.mgt.api/src/main/webapp/WEB-INF/web.xml @@ -33,11 +33,6 @@ 60 - - - isAdminService - false - doAuthentication true diff --git a/components/certificate-mgt/org.wso2.carbon.certificate.mgt.cert.admin.api/src/main/webapp/WEB-INF/web.xml b/components/certificate-mgt/org.wso2.carbon.certificate.mgt.cert.admin.api/src/main/webapp/WEB-INF/web.xml index 0efd4bc25a..72020e147e 100644 --- a/components/certificate-mgt/org.wso2.carbon.certificate.mgt.cert.admin.api/src/main/webapp/WEB-INF/web.xml +++ b/components/certificate-mgt/org.wso2.carbon.certificate.mgt.cert.admin.api/src/main/webapp/WEB-INF/web.xml @@ -38,11 +38,6 @@ 60 - - - isAdminService - false - doAuthentication true diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/webapp/WEB-INF/web.xml b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/webapp/WEB-INF/web.xml index 1f3c59562b..dc7eda629b 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/webapp/WEB-INF/web.xml +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/webapp/WEB-INF/web.xml @@ -40,30 +40,10 @@ 60 - - isAdminService - false - doAuthentication true - diff --git a/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/src/main/java/org/wso2/carbon/webapp/authenticator/framework/WebappAuthenticationValve.java b/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/src/main/java/org/wso2/carbon/webapp/authenticator/framework/WebappAuthenticationValve.java index 36d1da87cb..5a357a3ab5 100644 --- a/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/src/main/java/org/wso2/carbon/webapp/authenticator/framework/WebappAuthenticationValve.java +++ b/components/webapp-authenticator-framework/org.wso2.carbon.webapp.authenticator.framework/src/main/java/org/wso2/carbon/webapp/authenticator/framework/WebappAuthenticationValve.java @@ -41,7 +41,7 @@ public class WebappAuthenticationValve extends CarbonTomcatValve { @Override public void invoke(Request request, Response response, CompositeValve compositeValve) { - if (this.isContextSkipped(request) || (!this.isAdminService(request) && this.skipAuthentication(request))) { + if (this.isContextSkipped(request) || this.skipAuthentication(request)) { this.getNext().invoke(request, response, compositeValve); return; } @@ -74,11 +74,6 @@ public class WebappAuthenticationValve extends CarbonTomcatValve { } } - private boolean isAdminService(Request request) { - String param = request.getContext().findParameter("isAdminService"); - return (param != null && Boolean.parseBoolean(param)); - } - private boolean skipAuthentication(Request request) { String param = request.getContext().findParameter("doAuthentication"); return (param == null || !Boolean.parseBoolean(param) || isNonSecuredEndPoint(request));