This is an automated email from the ASF dual-hosted git repository. heneveld pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/brooklyn-ui.git
commit a91a559e615ac233e62e5fb1102049570948d1ed Author: Alex Heneveld <[email protected]> AuthorDate: Mon Jan 7 17:17:27 2019 +0000 different approach, using a filter, set up for home module other modules to follow --- ui-modules/home/pom.xml | 1 + ui-modules/home/src/main/webapp/WEB-INF/web.xml | 26 ++++++++----------------- 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/ui-modules/home/pom.xml b/ui-modules/home/pom.xml index 5831ee3..49d23ee 100644 --- a/ui-modules/home/pom.xml +++ b/ui-modules/home/pom.xml @@ -112,6 +112,7 @@ <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> <Import-Package> org.apache.brooklyn.ui.modularity.module.api, + org.apache.brooklyn.rest.filter, org.eclipse.jetty.servlets, * </Import-Package> diff --git a/ui-modules/home/src/main/webapp/WEB-INF/web.xml b/ui-modules/home/src/main/webapp/WEB-INF/web.xml index 9be0439..6242d44 100644 --- a/ui-modules/home/src/main/webapp/WEB-INF/web.xml +++ b/ui-modules/home/src/main/webapp/WEB-INF/web.xml @@ -42,6 +42,10 @@ </init-param> </filter> <filter> + <filter-name>brooklyn-security-filter</filter-name> + <filter-class>org.apache.brooklyn.rest.filter.BrooklynSecurityProviderFilterJavax</filter-class> + </filter> + <filter> <filter-name>GzipFilter</filter-name> <filter-class>org.eclipse.jetty.servlets.GzipFilter</filter-class> <init-param> @@ -55,27 +59,13 @@ <url-pattern>/*</url-pattern> </filter-mapping> <filter-mapping> + <filter-name>brooklyn-security-filter</filter-name> + <url-pattern>/*</url-pattern> + </filter-mapping> + <filter-mapping> <filter-name>GzipFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <!--FILTERS :: END--> - - <login-config> - <auth-method>BASIC</auth-method> - <realm-name>webconsole</realm-name> - </login-config> - - <security-constraint> - <web-resource-collection> - <web-resource-name>webconsole-static-assets</web-resource-name> - <url-pattern>/*</url-pattern> - </web-resource-collection> - <auth-constraint> - <role-name>**</role-name> - </auth-constraint> - </security-constraint> - <security-role> - <role-name>**</role-name> - </security-role> </web-app>
