<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/security"
	xmlns:beans="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
		http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd
		">
	
	<http security="none" pattern="/bootstrap/**" />
	<http security="none" pattern="/images/**" />
	<http security="none" pattern="/scripts/**" />
	<http security="none" pattern="/styles/**" />
	
	<http auto-config="true" use-expressions="true">
	
		<!-- Authentication -->
		<form-login login-page="/login"
			authentication-failure-url="/login?failed=true"
			default-target-url="/" />
		<remember-me />
		<logout logout-url="/logout" logout-success-url="/" />
		
		<!-- Access rules -->
		<intercept-url pattern="/login" access="permitAll" />
		<intercept-url pattern="/**" access="isAuthenticated()" />
	</http>
	
	<!-- FIXME Temporary -->
	<authentication-manager alias="authenticationManager">
		<authentication-provider>
			<user-service>
				<user name="willie" password="willie" authorities="user" />
			</user-service>
		</authentication-provider>
	</authentication-manager>
</beans:beans>
