Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<beans xmlns:security="http://www.springframework.org/schema/security"
	xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:osgi="http://www.springframework.org/schema/osgi"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
           http://www.springframework.org/schema/beans/spring-beans.xsd
           http://www.springframework.org/schema/security
           http://www.springframework.org/schema/security/spring-security.xsd
           http://www.springframework.org/schema/osgi 
		http://www.springframework.org/schema/osgi/spring-osgi.xsd">
	
	
	<security:http  security="none" pattern="/security/*" >	 
	</security:http>
	
	<security:http auto-config="true"
		entry-point-ref="defaultAuthenticationEntryPoint">
		
		<security:session-management
			session-fixation-protection="migrateSession">
		</security:session-management>
		
		<security:access-denied-handler ref="accessDeniedHandler" />
		
		<security:intercept-url pattern="/tx/**"
			access="ROLE_DNET_USER" />
		
		<security:intercept-url pattern="/upload/**"
			access="ROLE_DNET_USER" />
	</security:http>
	
	
	
	<security:authentication-manager alias="authenticationManager">
		<security:authentication-provider
			user-service-ref="osgiAuthenticationForDbUser" />
	</security:authentication-manager>
	<bean name="accessDeniedHandler"
		class="net.nan21.dnet.core.security.DefaultAccessDeniedHandler" />
	<bean name="defaultAuthenticationEntryPoint"
		class="net.nan21.dnet.core.security.DefaultNotAuthenticatedEntryPoint" />
</beans>
New to GrepCode? Check out our FAQ X