working spring security digest auth configuration
This commit is contained in:
parent
f7a0ef8578
commit
32f77f4613
|
@ -5,14 +5,6 @@
|
||||||
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd
|
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd
|
||||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd">
|
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd">
|
||||||
|
|
||||||
<http pattern="/securityNone" security="none" />
|
|
||||||
|
|
||||||
<http use-expressions="true" entry-point-ref="digestEntryPoint">
|
|
||||||
<intercept-url pattern="/**" access="isAuthenticated()" />
|
|
||||||
|
|
||||||
<custom-filter ref="digestFilter" after="BASIC_AUTH_FILTER" />
|
|
||||||
</http>
|
|
||||||
|
|
||||||
<beans:bean id="digestFilter"
|
<beans:bean id="digestFilter"
|
||||||
class="org.springframework.security.web.authentication.www.DigestAuthenticationFilter">
|
class="org.springframework.security.web.authentication.www.DigestAuthenticationFilter">
|
||||||
<beans:property name="userDetailsService" ref="userService" />
|
<beans:property name="userDetailsService" ref="userService" />
|
||||||
|
@ -25,6 +17,13 @@
|
||||||
<beans:property name="key" value="acegi" />
|
<beans:property name="key" value="acegi" />
|
||||||
</beans:bean>
|
</beans:bean>
|
||||||
|
|
||||||
|
<!-- the security namespace configuration -->
|
||||||
|
<http use-expressions="true" entry-point-ref="digestEntryPoint">
|
||||||
|
<intercept-url pattern="/**" access="isAuthenticated()" />
|
||||||
|
|
||||||
|
<custom-filter ref="digestFilter" position="BASIC_AUTH_FILTER" />
|
||||||
|
</http>
|
||||||
|
|
||||||
<authentication-manager>
|
<authentication-manager>
|
||||||
<authentication-provider>
|
<authentication-provider>
|
||||||
<user-service id="userService">
|
<user-service id="userService">
|
||||||
|
|
Loading…
Reference in New Issue