1
0
mirror of synced 2026-08-05 17:57:15 +00:00

SEC-1186: Make sure an Element is always supplied when registering the AuthenticationManager. Fixes broken tests.

This commit is contained in:
Luke Taylor
2009-06-28 13:36:54 +00:00
parent 980b9b73b8
commit 853b4c8753
11 changed files with 73 additions and 24 deletions
@@ -31,6 +31,7 @@
<http-basic/>
<logout logout-success-url="/index.jsp"/>
<remember-me />
<custom-filter ref="switchUserProcessingFilter" position="SWITCH_USER_FILTER"/>
</http>
<authentication-provider>
@@ -45,7 +46,6 @@
based on the role granted the ability to 'switch' to another user -->
<!-- In this example 'rod' has ROLE_SUPERVISOR that can switch to regular ROLE_USER(s) -->
<b:bean id="switchUserProcessingFilter" class="org.springframework.security.web.authentication.switchuser.SwitchUserProcessingFilter" autowire="byType">
<custom-filter position="SWITCH_USER_FILTER"/>
<b:property name="targetUrl" value="/secure/index.htm"/>
</b:bean>
@@ -37,8 +37,6 @@
</td></tr>
<tr><td colspan='2'><input name="exit" type="submit" value="Exit"></td></tr>
</table>
</form>
</body>
</html>
@@ -38,6 +38,8 @@
-->
</http>
<authentication-manager alias="authManager"/>
<!--
Usernames/Passwords are
rod/koala