security work
This commit is contained in:
parent
dd8debd720
commit
ff3b2dfc53
@ -1,30 +1,28 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<beans:beans xmlns="http://www.springframework.org/schema/security"
|
<beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"
|
xsi:schemaLocation="
|
||||||
xsi:schemaLocation="
|
|
||||||
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">
|
<http use-expressions="true">
|
||||||
<intercept-url pattern="/login*" access="isAnonymous()" />
|
<intercept-url pattern="/login*" access="isAnonymous()" />
|
||||||
|
|
||||||
<intercept-url pattern="/permitAll" access="permitAll" />
|
<intercept-url pattern="/permitAll" access="permitAll" />
|
||||||
|
|
||||||
<intercept-url pattern="/**" access="isAuthenticated()" />
|
<intercept-url pattern="/**" access="isAuthenticated()" />
|
||||||
|
|
||||||
<http-basic />
|
<http-basic />
|
||||||
|
|
||||||
</http>
|
</http>
|
||||||
|
|
||||||
<http pattern="/securityNone" security="none" />
|
<authentication-manager>
|
||||||
|
<authentication-provider>
|
||||||
<authentication-manager>
|
<user-service>
|
||||||
<authentication-provider>
|
<user name="user1" password="user1Pass" authorities="ROLE_USER" />
|
||||||
<user-service>
|
</user-service>
|
||||||
<user name="user1" password="user1Pass" authorities="ROLE_USER" />
|
</authentication-provider>
|
||||||
</user-service>
|
</authentication-manager>
|
||||||
</authentication-provider>
|
|
||||||
</authentication-manager>
|
|
||||||
|
|
||||||
</beans:beans>
|
</beans:beans>
|
Loading…
x
Reference in New Issue
Block a user