<?xml version="1.0" encoding="UTF-8"?>
<!-- Source project: sip05, branch: 08 (Maven Project) -->

<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.0.xsd
    http://www.springframework.org/schema/security
    http://www.springframework.org/schema/security/spring-security-3.0.xsd">

  <http auto-config="true">
    <form-login 
      login-page="/login.jsp" 
      authentication-failure-url="/login.jsp?error=true"/>
    <intercept-url 
      pattern="/account/**" access="ROLE_USER"/>
    <intercept-url 
      pattern="/**" access="IS_AUTHENTICATED_ANONYMOUSLY"/>    
  </http>
  
  <authentication-manager alias="authenticationManager">
    <authentication-provider>
      <user-service>
        <user name="joshua" 
          password="joshua" 
          authorities="ROLE_USER"/>
        <user name="RobinJBryce@example.com" 
          password="password" 
          authorities="ROLE_USER"/>         
      </user-service>
    </authentication-provider>
  </authentication-manager>     
  
</beans:beans>