|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (323)
View Page History </servlet-mapping>
<!-- ################################# CXF Servlet used to expose petals-view -->
<!-- api as web service ################################# -->
<!-- api as web service ################################# -->
{code}
{cloak}
{cloak}
h2. Authentification with LDAP
<!-- #################################-->
<!-- Here, you can define the datasource access, by default you must specify the jndi datasource in your -->
<!-- Here, you can define the datasource access, by default you must specify the jndi datasource in your -->
<!-- container with name jdbc/PetalsViewDataSource. If you chosse choose c3po or dbcp datasource, you must configure-->
<!-- the petals-view.properties with your informations. -->
<!-- #################################-->
/WEB-INF/spring/petals-view-datasource-jndi.xml
/WEB-INF/spring/petals-view-datasource-jndi.xml
<!-- authentication files must be commented. -->
<!-- #################################-->
<!-- #################################-->
<!--/WEB-INF/spring/petals-view-security-classical.xml-->
<!-- /WEB-INF/spring/petals-view-security-cas.xml -->
<!-- /WEB-INF/spring/petals-view-security-cas.xml -->
<!-- #################################-->
<!-- Here, all files must be uncommented, they are necessaries to application configuration.-->
<!-- #################################-->
/WEB-INF/spring/petals-view-annotation.xml
/WEB-INF/spring/petals-view-hibernate.xml
/WEB-INF/spring/petals-view-transaction.xml
classpath:web-commons-user-all.xml
/WEB-INF/spring/petals-view-ui.xml
/WEB-INF/spring/petals-view-ws.xml
</param-value>
</context-param>
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>/WEB-INF/log4j.xml</param-value>
</context-param>
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>petalview.root</param-value>
</context-param>
<listener>
<listener-class>com.ebmwebsourcing.petalsview.init.StartupContext</listener-class>
</listener>
<listener>
<listener-class>
org.springframework.web.context.request.RequestContextListener</listener-class>
</listener>
<!-- Listerner for security - Publishes events for session creation and -->
<!-- destruction through the application - context. Optional unless concurrent -->
<!-- session control is being used. -->
<listener>
<listener-class>org.springframework.security.web.session.HttpSessionEventPublisher</listener-class>
</listener>
<welcome-file-list>
<welcome-file>petals-view/pg/pages/Welcome</welcome-file>
</welcome-file-list>
<servlet>
<description>The main open SUIT servlet</description>
<display-name>OpenSUITServlet</display-name>
<servlet-name>OpenSUITServlet</servlet-name>
<servlet-class>com.ebmwebsourcing.petalsview.init.FlowWatchServlet</servlet-class>
<init-param>
<param-name>xml</param-name>
<param-value>/WEB-INF/FlowWatch.xml</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>OpenSUITServlet</servlet-name>
<url-pattern>/petals-view/*</url-pattern>
</servlet-mapping>
<!-- ################################# CXF Servlet used to expose petals-view -->
<!-- api as web service ################################# -->
<servlet>
<display-name>CXF Servlet</display-name>
<servlet-name>CXFServlet</servlet-name>
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>CXFServlet</servlet-name>
<url-pattern>/ws/*</url-pattern>
</servlet-mapping>
<!-- ################################# H2 Console (for dev purposes) ################################# -->
<!-- <servlet> -->
<!-- <servlet-name>H2Console</servlet-name> -->
<!-- <servlet-class>org.h2.server.web.WebServlet</servlet-class> -->
<!-- <load-on-startup>1</load-on-startup> -->
<!-- </servlet> -->
<!-- <servlet-mapping> -->
<!-- <servlet-name>H2Console</servlet-name> -->
<!-- <url-pattern>/h2console/*</url-pattern> -->
<!-- </servlet-mapping> -->
<!-- ################################# Configuration for spring security
cas authentication ################################# -->
<!-- <filter> -->
<!-- <filter-name>CAS Single Sign Out Filter</filter-name> -->
<!-- <filter-class>org.jasig.cas.client.session.SingleSignOutFilter</filter-class> -->
<!-- </filter> -->
<!-- <filter-mapping> -->
<!-- <filter-name>CAS Single Sign Out Filter</filter-name> -->
<!-- <url-pattern>/*</url-pattern> -->
<!-- </filter-mapping> -->
<!-- ################################# -->
<!-- Configuration for spring security -->
<!-- classical authentication + ldap authentication. Must be commented, if realm -->
<!-- configuration is choosing. -->
<!-- ################################# -->
<filter>
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/petals-view/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- ################################# Configuration for realm authentication. -->
<!-- Must be commented if spring security authentication is choosing. ################################# -->
<!-- <security-constraint> -->
<!-- <web-resource-collection> -->
<!-- <web-resource-name>all</web-resource-name> -->
<!-- <url-pattern>/petals-view/pg/pages/Welcome</url-pattern> -->
<!-- <url-pattern>/petals-view/pg/pages/admin/*</url-pattern> -->
<!-- <url-pattern>/petals-view/pg/pages/flow/*</url-pattern> -->
<!-- <url-pattern>/petals-view/pg/pages/ref/*</url-pattern> -->
<!-- </web-resource-collection> -->
<!-- <auth-constraint> -->
<!-- <role-name>ROLE_AUTH</role-name> -->
<!-- </auth-constraint> -->
<!-- </security-constraint> -->
<!-- <login-config> -->
<!-- <auth-method>FORM</auth-method> -->
<!-- <realm-name>Petals View</realm-name> -->
<!-- <form-login-config> -->
<!-- <form-login-page>/petals-view/pg/pages/LoginRealm</form-login-page> -->
<!-- <form-error-page>/petals-view/pg/pages/LoginError</form-error-page> -->
<!-- </form-login-config> -->
<!-- </login-config> -->
<!-- <security-role> -->
<!-- <description></description> -->
<!-- <role-name>ROLE_AUTH</role-name> -->
<!-- </security-role> -->
<!-- ################################# A filter used to open and close hibernate -->
<!-- sessions ################################# -->
<filter>
<filter-name>OpenHibernateSessionInViewFilter</filter-name>
<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>OpenHibernateSessionInViewFilter</filter-name>
<url-pattern>/petals-view/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>OpenHibernateSessionInViewFilter</filter-name>
<url-pattern>/ws/*</url-pattern>
</filter-mapping>
<session-config>
<session-timeout>20</session-timeout>
</session-config>
</web-app>
{cloak}
h3. petals-view-security-ldap.xml configuration
{code}
{cloak}
{cloak}
h2. Authentification with CAS
{code:lang=xml}
<web-app id="WebApp_ID" version="2.4"
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Petals View</display-name>
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/PetalsViewDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
<!-- #################################-->
<!-- #################################-->
<!-- Here, you can define the datasource access, by default you must specify the jndi datasource in your -->
<!-- container with name jdbc/PetalsViewDataSource. If you chosse choose c3po or dbcp datasource, you must configure-->
<!-- the petals-view.properties with your informations. -->
<!-- #################################-->
/WEB-INF/spring/petals-view-datasource-jndi.xml
<!-- /WEB-INF/spring/petals-view-datasource-c3po.xml -->
<!-- /WEB-INF/spring/petals-view-datasource-dbcp.xml -->
<!-- #################################-->
<!-- Here, you can define the spring security authentication, if you choose cas or ldap authentication,-->
<!-- you must configure it with your properties. If you choose a realm authentication, all spring security -->
<!-- authentication files must be commented. -->
<!-- #################################-->
<!--/WEB-INF/spring/petals-view-security-classical.xml-->
<!-- /WEB-INF/spring/petals-view-security-cas.xml -->
/WEB-INF/spring/petals-view-security-ldap.xml
<!-- #################################-->
<!-- Here, all files must be uncommented, they are necessaries to application configuration.-->
<!-- #################################-->
/WEB-INF/spring/petals-view-annotation.xml
/WEB-INF/spring/petals-view-hibernate.xml
/WEB-INF/spring/petals-view-transaction.xml
classpath:web-commons-user-all.xml
/WEB-INF/spring/petals-view-ui.xml
/WEB-INF/spring/petals-view-ws.xml
</param-value>
</context-param>
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>/WEB-INF/log4j.xml</param-value>
</context-param>
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>petalview.root</param-value>
</context-param>
<listener>
<listener-class>com.ebmwebsourcing.petalsview.init.StartupContext</listener-class>
</listener>
<listener>
<listener-class>
org.springframework.web.context.request.RequestContextListener</listener-class>
</listener>
<!-- Listerner for security - Publishes events for session creation and -->
<!-- destruction through the application - context. Optional unless concurrent -->
<!-- session control is being used. -->
<listener>
<listener-class>org.springframework.security.web.session.HttpSessionEventPublisher</listener-class>
</listener>
<welcome-file-list>
<welcome-file>petals-view/pg/pages/Welcome</welcome-file>
</welcome-file-list>
<servlet>
<description>The main open SUIT servlet</description>
<display-name>OpenSUITServlet</display-name>
<servlet-name>OpenSUITServlet</servlet-name>
<servlet-class>com.ebmwebsourcing.petalsview.init.FlowWatchServlet</servlet-class>
<init-param>
<param-name>xml</param-name>
<param-value>/WEB-INF/FlowWatch.xml</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>OpenSUITServlet</servlet-name>
<url-pattern>/petals-view/*</url-pattern>
</servlet-mapping>
<!-- ################################# CXF Servlet used to expose petals-view -->
<!-- api as web service ################################# -->
<servlet>
<display-name>CXF Servlet</display-name>
<servlet-name>CXFServlet</servlet-name>
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>CXFServlet</servlet-name>
<url-pattern>/ws/*</url-pattern>
</servlet-mapping>
<!-- ################################# H2 Console (for dev purposes) ################################# -->
<!-- <servlet> -->
<!-- <servlet-name>H2Console</servlet-name> -->
<!-- <servlet-class>org.h2.server.web.WebServlet</servlet-class> -->
<!-- <load-on-startup>1</load-on-startup> -->
<!-- </servlet> -->
<!-- <servlet-mapping> -->
<!-- <servlet-name>H2Console</servlet-name> -->
<!-- <url-pattern>/h2console/*</url-pattern> -->
<!-- </servlet-mapping> -->
<!-- ################################# Configuration for spring security
cas authentication ################################# -->
<filter>
<filter-name>CAS Single Sign Out Filter</filter-name>
<filter-class>org.jasig.cas.client.session.SingleSignOutFilter</filter-class> -->
</filter>
<filter-mapping>
<filter-name>CAS Single Sign Out Filter</filter-name>
<url-pattern>/*</url-pattern> -->
</filter-mapping> -->
<!-- ################################# -->
<!-- Configuration for spring security -->
<!-- classical authentication + ldap authentication. Must be commented, if realm -->
<!-- configuration is choosing. -->
<!-- ################################# -->
<!--
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/petals-view/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
-->
<!-- ################################# Configuration for realm authentication. -->
<!-- Must be commented if spring security authentication is choosing. ################################# -->
<!-- <security-constraint> -->
<!-- <web-resource-collection> -->
<!-- <web-resource-name>all</web-resource-name> -->
<!-- <url-pattern>/petals-view/pg/pages/Welcome</url-pattern> -->
<!-- <url-pattern>/petals-view/pg/pages/admin/*</url-pattern> -->
<!-- <url-pattern>/petals-view/pg/pages/flow/*</url-pattern> -->
<!-- <url-pattern>/petals-view/pg/pages/ref/*</url-pattern> -->
<!-- </web-resource-collection> -->
<!-- <auth-constraint> -->
<!-- <role-name>ROLE_AUTH</role-name> -->
<!-- </auth-constraint> -->
<!-- </security-constraint> -->
<!-- <login-config> -->
<!-- <auth-method>FORM</auth-method> -->
<!-- <realm-name>Petals View</realm-name> -->
<!-- <form-login-config> -->
<!-- <form-login-page>/petals-view/pg/pages/LoginRealm</form-login-page> -->
<!-- <form-error-page>/petals-view/pg/pages/LoginError</form-error-page> -->
<!-- </form-login-config> -->
<!-- </login-config> -->
<!-- <security-role> -->
<!-- <description></description> -->
<!-- <role-name>ROLE_AUTH</role-name> -->
<!-- </security-role> -->
<!-- ################################# A filter used to open and close hibernate -->
<!-- sessions ################################# -->
<filter>
<filter-name>OpenHibernateSessionInViewFilter</filter-name>
<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>OpenHibernateSessionInViewFilter</filter-name>
<url-pattern>/petals-view/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>OpenHibernateSessionInViewFilter</filter-name>
<url-pattern>/ws/*</url-pattern>
</filter-mapping>
<session-config>
<session-timeout>20</session-timeout>
</session-config>
</web-app>
{code}
{cloak}
{code}
{cloak}
h3. Configure CAS properties