security work
This commit is contained in:
parent
98ad7671b5
commit
098c1070d6
@ -6,13 +6,13 @@
|
|||||||
http://www.springframework.org/schema/beans
|
http://www.springframework.org/schema/beans
|
||||||
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd">
|
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd">
|
||||||
|
|
||||||
<beans:bean id="digestFilter">
|
<beans:bean id="digestFilter" class="org.springframework.security.web.authentication.www.DigestAuthenticationFilter">
|
||||||
<beans:property name="userDetailsService" ref="userService" />
|
<beans:property name="userDetailsService" ref="userService" />
|
||||||
<beans:property name="authenticationEntryPoint" ref="digestEntryPoint" />
|
<beans:property name="authenticationEntryPoint" ref="digestEntryPoint" />
|
||||||
</beans:bean>
|
</beans:bean>
|
||||||
<beans:bean id="digestEntryPoint">
|
<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="realmName" value="Contacts Realm via Digest Authentication" />
|
||||||
<beans:property name="key" value="acegi" />
|
<beans:property name="key" value="uniqueAndSecret" />
|
||||||
</beans:bean>
|
</beans:bean>
|
||||||
|
|
||||||
<http use-expressions="true" create-session="stateless" entry-point-ref="digestEntryPoint">
|
<http use-expressions="true" create-session="stateless" entry-point-ref="digestEntryPoint">
|
||||||
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
<authentication-manager>
|
<authentication-manager>
|
||||||
<authentication-provider>
|
<authentication-provider>
|
||||||
<user-service>
|
<user-service id="userService">
|
||||||
<user name="user" password="userPass" authorities="ROLE_USER" />
|
<user name="user" password="userPass" authorities="ROLE_USER" />
|
||||||
</user-service>
|
</user-service>
|
||||||
</authentication-provider>
|
</authentication-provider>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user