Yaniv Dary has submitted this change and it was merged. Change subject: reports: adding EngineAuthentication jar to support webadmin-reports integration ......................................................................
reports: adding EngineAuthentication jar to support webadmin-reports integration This commit adds the Engine pre-authentication filter that supports identifying that a user is logged in to the engine, using its session ID, and supporting using the same user (which is external to Jasper) as a reports user, viewing reports. Notes: 1. In order to use it, the EngineAuthentication.jar file should be put in "$JASPERSERVER_DEPLOYMENT_DIR"/WEB-INF/lib directory. 2. Change "$JASPERSERVER_DEPLOYMENT_DIR"/WEB-INF/applicationContext-security-web.xml file: * Adding the EngineSimplePreAuthFilter filter to the filter chain for /**: /**=httpSessionContextIntegrationFilter,multipartRequestWrapperFilter,webAppSecurityFilter,jsCsrfGuardFilter,${bean.loggingFilter},${bean.userPreferencesFilter},${bean.authenticationProcessingFilter},${bean.userPreferencesFilter},${bean.basicProcessingFilter},EngineSimplePreAuthFilter,requestParameterAuthenticationFilter,JIAuthenticationSynchronizer,anonymousProcessingFilter,exceptionTranslationFilter,filterInvocationInterceptor,switchUserProcessingFilter,iPadSupportFilter * Add the following bean definition: <bean id="EngineSimplePreAuthFilter" class="org.ovirt.authentication.EngineSimplePreAuthFilter"> <property name="authenticationManager"> <ref bean="authenticationManager"/> </property> <property name="servletURL" value="http://127.0.0.1:8080/OvirtEngineWeb/ValidateSession"/> <property name="pollingTimeout" value="10"/> <property name="trustStorePath" value="<path to trust store>"/> <property name="trustStorePassword" value="<password to trust store>"/> </bean> The SSL-related properties have to be added only in case the servlet URL starts with https (secured connection). 3. Currently there is a problem with the jasperserver maven repo, so the fetched jar is corrupted. Waiting for their resolution. Change-Id: I14b3803ef899434dade1e6189b9c5c26a41dd190 --- A reports/jars/EngineAuthentication/pom.xml A reports/jars/EngineAuthentication/src/main/java/org/ovirt/authentication/EngineSimplePreAuthFilter.java A reports/jars/EngineAuthentication/src/main/java/org/ovirt/authentication/EngineUserDetails.java 3 files changed, 418 insertions(+), 0 deletions(-) Approvals: Yaniv Dary: Looks good to me, approved Yair Zaslavsky: Looks good to me, but someone else must approve Oved Ourfali: Verified -- To view, visit http://gerrit.ovirt.org/3355 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I14b3803ef899434dade1e6189b9c5c26a41dd190 Gerrit-PatchSet: 6 Gerrit-Project: ovirt-reports Gerrit-Branch: master Gerrit-Owner: Oved Ourfali <oourf...@redhat.com> Gerrit-Reviewer: Oved Ourfali <oourf...@redhat.com> Gerrit-Reviewer: Yair Zaslavsky <yzasl...@redhat.com> Gerrit-Reviewer: Yaniv Dary <yd...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches