digest config work
This commit is contained in:
parent
10cff430f1
commit
f7a0ef8578
|
@ -7,16 +7,27 @@
|
|||
|
||||
<http pattern="/securityNone" security="none" />
|
||||
|
||||
<http use-expressions="true">
|
||||
<http use-expressions="true" entry-point-ref="digestEntryPoint">
|
||||
<intercept-url pattern="/**" access="isAuthenticated()" />
|
||||
|
||||
<http-basic entry-point-ref="myBasicAuthenticationEntryPoint" />
|
||||
|
||||
<custom-filter ref="digestFilter" after="BASIC_AUTH_FILTER" />
|
||||
</http>
|
||||
|
||||
<beans:bean id="digestFilter"
|
||||
class="org.springframework.security.web.authentication.www.DigestAuthenticationFilter">
|
||||
<beans:property name="userDetailsService" ref="userService" />
|
||||
<beans:property name="authenticationEntryPoint" ref="digestEntryPoint" />
|
||||
</beans:bean>
|
||||
<beans:bean id="digestEntryPoint"
|
||||
class="org.springframework.security.web.authentication.www.DigestAuthenticationEntryPoint">
|
||||
<beans:property name="realmName"
|
||||
value="Contacts Realm via Digest Authentication" />
|
||||
<beans:property name="key" value="acegi" />
|
||||
</beans:bean>
|
||||
|
||||
<authentication-manager>
|
||||
<authentication-provider>
|
||||
<user-service>
|
||||
<user-service id="userService">
|
||||
<user name="user1" password="user1Pass" authorities="ROLE_USER" />
|
||||
</user-service>
|
||||
</authentication-provider>
|
||||
|
|
Loading…
Reference in New Issue