Skip to content

Commit 98ad767

Browse files
author
eugenp
committed
security work
1 parent b3c9577 commit 98ad767

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

‎spring-security-rest-digest-auth/README.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,3 @@
44

55

66
### Relevant Articles:
7-
- [RestTemplate with Basic Authentication in Spring](http://www.baeldung.com/2012/04/16/how-to-use-resttemplate-with-basic-authentication-in-spring-3-1)
8-
- [HttpClient Timeout](http://www.baeldung.com/httpclient-timeout)

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,19 @@
66
http://www.springframework.org/schema/beans
77
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd">
88

9-
<http create-session="stateless" use-expressions="true">
9+
<beans:bean id="digestFilter">
10+
<beans:property name="userDetailsService" ref="userService" />
11+
<beans:property name="authenticationEntryPoint" ref="digestEntryPoint" />
12+
</beans:bean>
13+
<beans:bean id="digestEntryPoint">
14+
<beans:property name="realmName" value="Contacts Realm via Digest Authentication" />
15+
<beans:property name="key" value="acegi" />
16+
</beans:bean>
1017

11-
<http-basic />
18+
<http use-expressions="true" create-session="stateless" entry-point-ref="digestEntryPoint">
19+
<intercept-url pattern="/**" access="isAuthenticated()" />
1220

21+
<custom-filter ref="digestFilter" after="BASIC_AUTH_FILTER" />
1322
</http>
1423

1524
<authentication-manager>

0 commit comments

Comments
 (0)