security work

This commit is contained in:
eugenp 2013-06-01 19:40:30 +03:00
parent 2cf72a18ee
commit a63560bb9f
2 changed files with 3 additions and 5 deletions

View File

@ -1,5 +1,5 @@
========= =========
Relevant Article: Relevant Article:
- [Spring Security security none, filters none, access permitAll](http://www.baeldung.com/security-none-filters-none-access-permitAll) - [Spring Security - security none, filters none, access permitAll](http://www.baeldung.com/security-none-filters-none-access-permitAll)
- [Spring Security Basic Authentication](http://www.baeldung.com/spring-security-basic-authentication)

View File

@ -8,11 +8,9 @@
<http pattern="/securityNone" security="none" /> <http pattern="/securityNone" security="none" />
<http use-expressions="true"> <http use-expressions="true">
<intercept-url pattern="/login*" access="isAnonymous()" />
<intercept-url pattern="/permitAll" access="permitAll" />
<intercept-url pattern="/**" access="isAuthenticated()" /> <intercept-url pattern="/**" access="isAuthenticated()" />
<http-basic entry-point-ref="myBasicAuthenticationEntryPoint" /> <http-basic entry-point-ref="myBasicAuthenticationEntryPoint" />
</http> </http>