<?xml version="1.0" encoding="UTF-8"?>

<!--
========================================================================================================================
beans-security.xml

Copyright (c) 2013 Manning Publications Co.

Willie Wheeler (willie.wheeler@gmail.com)

Book: http://manning.com/wheeler/
Blog: http://springinpractice.com/
Code: https://github.com/springinpractice
========================================================================================================================
-->
<beans:beans xmlns="http://www.springframework.org/schema/security"
	xmlns:beans="http://www.springframework.org/schema/beans"
	xmlns:p="http://www.springframework.org/schema/p"
	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.0.xsd">
	
	<http auto-config="true">
		<form-login default-target-url="/home.html" />
		<logout logout-success-url="/home.html" />
		<access-denied-handler error-page="/accessdenied.html"/>
	</http>
	
	<global-method-security pre-post-annotations="enabled" />
	
	<authentication-manager alias="authenticationManager">
		<authentication-provider user-service-ref="accountDao" />
	</authentication-manager>
</beans:beans>
