General refactorings and improvements to namespace support, including

autoDetect="true" attribute for <http> element.
This commit is contained in:
Ben Alex
2007-12-04 10:35:08 +00:00
parent 2441ab6d9a
commit 8e7c540b16
11 changed files with 305 additions and 211 deletions

View File

@@ -11,23 +11,27 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.xsd">
<http>
<http>
<intercept-url pattern="/secure/extreme/**" access="ROLE_SUPERVISOR"/>
<intercept-url pattern="/secure/**" access="IS_AUTHENTICATED_REMEMBERED" />
<intercept-url pattern="/**" access="IS_AUTHENTICATED_ANONYMOUSLY" />
<!-- All of this is unnecessary if autoConfig="true"-->
<form-login />
<anonymous />
<http-basic />
<logout />
<logout />
<remember-me />
<concurrent-session-control maxSessions="1" exceptionIfMaximumExceeded="true"/>
<remember-me key="doesntmatter"/>
</http>
<!--
</http>
<!--
<beans:bean name="tokenRepo" class="org.springframework.security.ui.rememberme.InMemoryTokenRepositoryImpl"/>
-->
-->
<repository>
<user-service>
<user name="bob" password="bobspassword" authorities="ROLE_SUPERVISOR" />