Juan Hernandez has uploaded a new change for review. Change subject: userportal, webadmin: Add authentication filter ......................................................................
userportal, webadmin: Add authentication filter This patch adds the authentication filter to the GUI. This doesn't currently have any effect, as this filter does nothing if the principal isn't available in the HTTP request. It will have an effect only if at least one negotiating authenticator is manually configured for the application. Change-Id: I69d05f71c76bde5cf8ff07df79f212eda2cdc7f5 Signed-off-by: Juan Hernandez <juan.hernan...@redhat.com> --- M frontend/webadmin/modules/userportal-gwtp/src/main/webapp/WEB-INF/web.xml M frontend/webadmin/modules/webadmin/src/main/webapp/WEB-INF/web.xml 2 files changed, 20 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/24/21024/1 diff --git a/frontend/webadmin/modules/userportal-gwtp/src/main/webapp/WEB-INF/web.xml b/frontend/webadmin/modules/userportal-gwtp/src/main/webapp/WEB-INF/web.xml index 019ffee..30eae75 100644 --- a/frontend/webadmin/modules/userportal-gwtp/src/main/webapp/WEB-INF/web.xml +++ b/frontend/webadmin/modules/userportal-gwtp/src/main/webapp/WEB-INF/web.xml @@ -16,6 +16,16 @@ <param-value>userportal</param-value> </context-param> + <!-- Perform authentication: --> + <filter> + <filter-name>AuthenticationFilter</filter-name> + <filter-class>org.ovirt.engine.core.authentication.AuthenticationFilter</filter-class> + </filter> + <filter-mapping> + <filter-name>AuthenticationFilter</filter-name> + <url-pattern>/*</url-pattern> + </filter-mapping> + <filter-mapping> <filter-name>LocaleFilter</filter-name> <url-pattern>/*</url-pattern> diff --git a/frontend/webadmin/modules/webadmin/src/main/webapp/WEB-INF/web.xml b/frontend/webadmin/modules/webadmin/src/main/webapp/WEB-INF/web.xml index 2e1ab84..92c7eb9 100644 --- a/frontend/webadmin/modules/webadmin/src/main/webapp/WEB-INF/web.xml +++ b/frontend/webadmin/modules/webadmin/src/main/webapp/WEB-INF/web.xml @@ -17,6 +17,16 @@ <param-value>webadmin</param-value> </context-param> + <!-- Perform authentication: --> + <filter> + <filter-name>AuthenticationFilter</filter-name> + <filter-class>org.ovirt.engine.core.authentication.AuthenticationFilter</filter-class> + </filter> + <filter-mapping> + <filter-name>AuthenticationFilter</filter-name> + <url-pattern>/*</url-pattern> + </filter-mapping> + <filter-mapping> <filter-name>LocaleFilter</filter-name> <url-pattern>/*</url-pattern> -- To view, visit http://gerrit.ovirt.org/21024 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I69d05f71c76bde5cf8ff07df79f212eda2cdc7f5 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Juan Hernandez <juan.hernan...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches