Skip to content

Commit 32f77f4

Browse files
author
eugenp
committed
working spring security digest auth configuration
1 parent f7a0ef8 commit 32f77f4

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

spring-security-digest-auth/src/main/resources/webSecurityConfig.xml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@
55
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd
66
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd">
77

8-
<http pattern="/securityNone" security="none" />
9-
10-
<http use-expressions="true" entry-point-ref="digestEntryPoint">
11-
<intercept-url pattern="/**" access="isAuthenticated()" />
12-
13-
<custom-filter ref="digestFilter" after="BASIC_AUTH_FILTER" />
14-
</http>
15-
168
<beans:bean id="digestFilter"
179
class="org.springframework.security.web.authentication.www.DigestAuthenticationFilter">
1810
<beans:property name="userDetailsService" ref="userService" />
@@ -25,6 +17,13 @@
2517
<beans:property name="key" value="acegi" />
2618
</beans:bean>
2719

20+
<!-- the security namespace configuration -->
21+
<http use-expressions="true" entry-point-ref="digestEntryPoint">
22+
<intercept-url pattern="/**" access="isAuthenticated()" />
23+
24+
<custom-filter ref="digestFilter" position="BASIC_AUTH_FILTER" />
25+
</http>
26+
2827
<authentication-manager>
2928
<authentication-provider>
3029
<user-service id="userService">

0 commit comments

Comments
 (0)