25 changed files with 326 additions and 476 deletions
@ -1,51 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> |
|
||||||
<!-- |
|
||||||
* Copyright 2004 Acegi Technology Pty Limited |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
* |
|
||||||
* |
|
||||||
* $Id$ |
|
||||||
--> |
|
||||||
|
|
||||||
<beans> |
|
||||||
|
|
||||||
<!-- Data access object which stores authentication information --> |
|
||||||
<bean id="inMemoryDaoImpl" class="org.springframework.security.core.userdetails.memory.InMemoryDaoImpl"> |
|
||||||
<property name="userMap"> |
|
||||||
<value> |
|
||||||
rod=koala,ROLE_TELLER,ROLE_SUPERVISOR |
|
||||||
dianne=emu,ROLE_TELLER |
|
||||||
scott=wombat,ROLE_TELLER |
|
||||||
peter=opal,disabled,ROLE_TELLER |
|
||||||
</value> |
|
||||||
</property> |
|
||||||
</bean> |
|
||||||
|
|
||||||
<!-- Authentication provider that queries our data access object --> |
|
||||||
<bean id="daoAuthenticationProvider" class="org.springframework.security.authentication.dao.DaoAuthenticationProvider"> |
|
||||||
<property name="userDetailsService"><ref bean="inMemoryDaoImpl"/></property> |
|
||||||
<property name="forcePrincipalAsString"><value>true</value></property> |
|
||||||
</bean> |
|
||||||
|
|
||||||
<!-- The authentication manager that iterates through our only authentication provider --> |
|
||||||
<bean id="authenticationManager" class="org.springframework.security.authentication.ProviderManager"> |
|
||||||
<property name="providers"> |
|
||||||
<list> |
|
||||||
<ref bean="daoAuthenticationProvider"/> |
|
||||||
</list> |
|
||||||
</property> |
|
||||||
</bean> |
|
||||||
|
|
||||||
</beans> |
|
||||||
@ -1,38 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> |
|
||||||
<!-- |
|
||||||
* Copyright 2004 Acegi Technology Pty Limited |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
* |
|
||||||
* |
|
||||||
* $Id$ |
|
||||||
--> |
|
||||||
|
|
||||||
<beans> |
|
||||||
|
|
||||||
<!-- Data access object which stores authentication information --> |
|
||||||
<bean id="inMemoryDaoImpl" class="org.springframework.security.core.userdetails.memory.InMemoryDaoImpl"> |
|
||||||
<property name="userMap"> |
|
||||||
<value> |
|
||||||
rod=koala,ROLE_TELLER,ROLE_SUPERVISOR |
|
||||||
dianne=emu,ROLE_TELLER |
|
||||||
scott=wombat,ROLE_TELLER |
|
||||||
peter=opal,disabled,ROLE_TELLER |
|
||||||
</value> |
|
||||||
</property> |
|
||||||
</bean> |
|
||||||
|
|
||||||
<!-- The authentication manager is deliberately missing in order to test error detection --> |
|
||||||
|
|
||||||
</beans> |
|
||||||
@ -1,51 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> |
|
||||||
<!-- |
|
||||||
* Copyright 2004 Acegi Technology Pty Limited |
|
||||||
* |
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
||||||
* you may not use this file except in compliance with the License. |
|
||||||
* You may obtain a copy of the License at |
|
||||||
* |
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0 |
|
||||||
* |
|
||||||
* Unless required by applicable law or agreed to in writing, software |
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS, |
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
||||||
* See the License for the specific language governing permissions and |
|
||||||
* limitations under the License. |
|
||||||
* |
|
||||||
* |
|
||||||
* $Id$ |
|
||||||
--> |
|
||||||
|
|
||||||
<beans> |
|
||||||
|
|
||||||
<!-- Data access object which stores authentication information --> |
|
||||||
<bean id="inMemoryDaoImpl" class="org.springframework.security.core.userdetails.memory.InMemoryDaoImpl"> |
|
||||||
<property name="userMap"> |
|
||||||
<value> |
|
||||||
rod=koala,ROLE_TELLER,ROLE_SUPERVISOR |
|
||||||
dianne=emu,ROLE_TELLER |
|
||||||
scott=wombat,ROLE_TELLER |
|
||||||
peter=opal,disabled,ROLE_TELLER |
|
||||||
</value> |
|
||||||
</property> |
|
||||||
</bean> |
|
||||||
|
|
||||||
<!-- Authentication provider that queries our data access object --> |
|
||||||
<bean id="daoAuthenticationProvider" class="org.springframework.security.authentication.dao.DaoAuthenticationProvider"> |
|
||||||
<property name="userDetailsService"><ref bean="inMemoryDaoImpl"/></property> |
|
||||||
<property name="forcePrincipalAsString"><value>true</value></property> |
|
||||||
</bean> |
|
||||||
|
|
||||||
<!-- The authentication manager that iterates through our only authentication provider --> |
|
||||||
<bean id="authenticationManager" class="org.springframework.security.authentication.ProviderManager"> |
|
||||||
<property name="providers"> |
|
||||||
<list> |
|
||||||
<ref bean="daoAuthenticationProvider"/> |
|
||||||
</list> |
|
||||||
</property> |
|
||||||
</bean> |
|
||||||
|
|
||||||
</beans> |
|
||||||
@ -1,51 +1,51 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||||
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> |
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> |
||||||
<web-app id="WebApp"> |
<web-app id="WebApp"> |
||||||
<display-name>poc-acegi-web</display-name> |
<display-name>poc-acegi-web</display-name> |
||||||
<context-param> |
<context-param> |
||||||
<param-name>contextConfigLocation</param-name> |
<param-name>contextConfigLocation</param-name> |
||||||
<param-value>classpath:j2ee-acegi-security.xml</param-value> |
<param-value>classpath:j2ee-acegi-security.xml</param-value> |
||||||
</context-param> |
</context-param> |
||||||
<context-param> |
<context-param> |
||||||
<param-name>log4jConfigLocation</param-name> |
<param-name>log4jConfigLocation</param-name> |
||||||
<param-value>/WEB-INF/classes/log4j.properties</param-value> |
<param-value>/WEB-INF/classes/log4j.properties</param-value> |
||||||
</context-param> |
</context-param> |
||||||
|
|
||||||
<filter> |
<filter> |
||||||
<filter-name>springSecurityFilterChain</filter-name> |
<filter-name>springSecurityFilterChain</filter-name> |
||||||
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> |
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> |
||||||
</filter> |
</filter> |
||||||
|
|
||||||
<filter-mapping> |
<filter-mapping> |
||||||
<filter-name>springSecurityFilterChain</filter-name> |
<filter-name>springSecurityFilterChain</filter-name> |
||||||
<url-pattern>/*</url-pattern> |
<url-pattern>/*</url-pattern> |
||||||
</filter-mapping> |
</filter-mapping> |
||||||
|
|
||||||
<listener> |
|
||||||
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> |
|
||||||
</listener> |
|
||||||
<listener> |
|
||||||
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> |
|
||||||
</listener> |
|
||||||
<listener> |
|
||||||
<listener-class>org.acegisecurity.ui.session.HttpSessionEventPublisher</listener-class> |
|
||||||
</listener> |
|
||||||
|
|
||||||
<servlet> |
<listener> |
||||||
<servlet-name>dispatch</servlet-name> |
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> |
||||||
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> |
</listener> |
||||||
<load-on-startup>1</load-on-startup> |
<listener> |
||||||
</servlet> |
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> |
||||||
<servlet-mapping> |
</listener> |
||||||
<servlet-name>dispatch</servlet-name> |
<listener> |
||||||
<url-pattern>*.form</url-pattern> |
<listener-class>org.acegisecurity.ui.session.HttpSessionEventPublisher</listener-class> |
||||||
</servlet-mapping> |
</listener> |
||||||
<welcome-file-list> |
|
||||||
<welcome-file>index.html</welcome-file> |
<servlet> |
||||||
<welcome-file>index.htm</welcome-file> |
<servlet-name>dispatch</servlet-name> |
||||||
<welcome-file>index.jsp</welcome-file> |
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> |
||||||
<welcome-file>default.html</welcome-file> |
<load-on-startup>1</load-on-startup> |
||||||
<welcome-file>default.htm</welcome-file> |
</servlet> |
||||||
<welcome-file>default.jsp</welcome-file> |
<servlet-mapping> |
||||||
</welcome-file-list> |
<servlet-name>dispatch</servlet-name> |
||||||
|
<url-pattern>*.form</url-pattern> |
||||||
|
</servlet-mapping> |
||||||
|
<welcome-file-list> |
||||||
|
<welcome-file>index.html</welcome-file> |
||||||
|
<welcome-file>index.htm</welcome-file> |
||||||
|
<welcome-file>index.jsp</welcome-file> |
||||||
|
<welcome-file>default.html</welcome-file> |
||||||
|
<welcome-file>default.htm</welcome-file> |
||||||
|
<welcome-file>default.jsp</welcome-file> |
||||||
|
</welcome-file-list> |
||||||
</web-app> |
</web-app> |
||||||
|
|||||||
@ -1,88 +1,88 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||||
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> |
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> |
||||||
<web-app id="WebApp"> |
<web-app id="WebApp"> |
||||||
<display-name>poc-acegi-web</display-name> |
<display-name>poc-acegi-web</display-name> |
||||||
<context-param> |
<context-param> |
||||||
<param-name>contextConfigLocation</param-name> |
<param-name>contextConfigLocation</param-name> |
||||||
<param-value>classpath:j2ee-acegi-security.xml</param-value> |
<param-value>classpath:j2ee-acegi-security.xml</param-value> |
||||||
</context-param> |
</context-param> |
||||||
<context-param> |
<context-param> |
||||||
<param-name>log4jConfigLocation</param-name> |
<param-name>log4jConfigLocation</param-name> |
||||||
<param-value>/WEB-INF/classes/log4j.properties</param-value> |
<param-value>/WEB-INF/classes/log4j.properties</param-value> |
||||||
</context-param> |
</context-param> |
||||||
|
|
||||||
<filter> |
<filter> |
||||||
<filter-name>springSecurityFilterChain</filter-name> |
<filter-name>springSecurityFilterChain</filter-name> |
||||||
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> |
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> |
||||||
</filter> |
</filter> |
||||||
|
|
||||||
<filter-mapping> |
<filter-mapping> |
||||||
<filter-name>springSecurityFilterChain</filter-name> |
<filter-name>springSecurityFilterChain</filter-name> |
||||||
<url-pattern>/*</url-pattern> |
<url-pattern>/*</url-pattern> |
||||||
</filter-mapping> |
</filter-mapping> |
||||||
|
|
||||||
<listener> |
|
||||||
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> |
|
||||||
</listener> |
|
||||||
<listener> |
|
||||||
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> |
|
||||||
</listener> |
|
||||||
<listener> |
|
||||||
<listener-class>org.acegisecurity.ui.session.HttpSessionEventPublisher</listener-class> |
|
||||||
</listener> |
|
||||||
|
|
||||||
<servlet> |
<listener> |
||||||
<servlet-name>dispatch</servlet-name> |
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> |
||||||
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> |
</listener> |
||||||
<load-on-startup>1</load-on-startup> |
<listener> |
||||||
</servlet> |
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> |
||||||
<servlet-mapping> |
</listener> |
||||||
<servlet-name>dispatch</servlet-name> |
<listener> |
||||||
<url-pattern>*.form</url-pattern> |
<listener-class>org.acegisecurity.ui.session.HttpSessionEventPublisher</listener-class> |
||||||
</servlet-mapping> |
</listener> |
||||||
<welcome-file-list> |
|
||||||
<welcome-file>index.html</welcome-file> |
<servlet> |
||||||
<welcome-file>index.htm</welcome-file> |
<servlet-name>dispatch</servlet-name> |
||||||
<welcome-file>index.jsp</welcome-file> |
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> |
||||||
<welcome-file>default.html</welcome-file> |
<load-on-startup>1</load-on-startup> |
||||||
<welcome-file>default.htm</welcome-file> |
</servlet> |
||||||
<welcome-file>default.jsp</welcome-file> |
<servlet-mapping> |
||||||
</welcome-file-list> |
<servlet-name>dispatch</servlet-name> |
||||||
<resource-ref id="ResourceRef_1185189465160"> |
<url-pattern>*.form</url-pattern> |
||||||
<res-ref-name>jms/testQueue</res-ref-name> |
</servlet-mapping> |
||||||
<res-type>javax.jms.Queue</res-type> |
<welcome-file-list> |
||||||
<res-auth>Container</res-auth> |
<welcome-file>index.html</welcome-file> |
||||||
<res-sharing-scope>Shareable</res-sharing-scope> |
<welcome-file>index.htm</welcome-file> |
||||||
</resource-ref> |
<welcome-file>index.jsp</welcome-file> |
||||||
<resource-ref id="ResourceRef_1185189465170"> |
<welcome-file>default.html</welcome-file> |
||||||
<res-ref-name>jms/testQCF</res-ref-name> |
<welcome-file>default.htm</welcome-file> |
||||||
<res-type>javax.jms.QueueConnectionFactory</res-type> |
<welcome-file>default.jsp</welcome-file> |
||||||
<res-auth>Container</res-auth> |
</welcome-file-list> |
||||||
<res-sharing-scope>Shareable</res-sharing-scope> |
<resource-ref id="ResourceRef_1185189465160"> |
||||||
</resource-ref> |
<res-ref-name>jms/testQueue</res-ref-name> |
||||||
<security-constraint> |
<res-type>javax.jms.Queue</res-type> |
||||||
<web-resource-collection> |
<res-auth>Container</res-auth> |
||||||
<web-resource-name>Default</web-resource-name> |
<res-sharing-scope>Shareable</res-sharing-scope> |
||||||
<url-pattern>/*</url-pattern> |
</resource-ref> |
||||||
</web-resource-collection> |
<resource-ref id="ResourceRef_1185189465170"> |
||||||
<auth-constraint> |
<res-ref-name>jms/testQCF</res-ref-name> |
||||||
<role-name>*</role-name> |
<res-type>javax.jms.QueueConnectionFactory</res-type> |
||||||
</auth-constraint> |
<res-auth>Container</res-auth> |
||||||
</security-constraint> |
<res-sharing-scope>Shareable</res-sharing-scope> |
||||||
<security-role> |
</resource-ref> |
||||||
<description></description> |
<security-constraint> |
||||||
<role-name>Role1</role-name> |
<web-resource-collection> |
||||||
</security-role> |
<web-resource-name>Default</web-resource-name> |
||||||
<security-role> |
<url-pattern>/*</url-pattern> |
||||||
<description></description> |
</web-resource-collection> |
||||||
<role-name>Role2</role-name> |
<auth-constraint> |
||||||
</security-role> |
<role-name>*</role-name> |
||||||
<security-role> |
</auth-constraint> |
||||||
<description></description> |
</security-constraint> |
||||||
<role-name>Role3</role-name> |
<security-role> |
||||||
</security-role> |
<description></description> |
||||||
<security-role> |
<role-name>Role1</role-name> |
||||||
<description></description> |
</security-role> |
||||||
<role-name>Role4</role-name> |
<security-role> |
||||||
</security-role> |
<description></description> |
||||||
|
<role-name>Role2</role-name> |
||||||
|
</security-role> |
||||||
|
<security-role> |
||||||
|
<description></description> |
||||||
|
<role-name>Role3</role-name> |
||||||
|
</security-role> |
||||||
|
<security-role> |
||||||
|
<description></description> |
||||||
|
<role-name>Role4</role-name> |
||||||
|
</security-role> |
||||||
</web-app> |
</web-app> |
||||||
|
|||||||
Loading…
Reference in new issue