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

    Copyright (c) 2008-2010 XebiaLabs B.V. All rights reserved.

    Your use of XebiaLabs Software and Documentation is subject to the Personal
    License Agreement.

    http://www.xebialabs.com/deployit-personal-edition-license-agreement

    You are granted a personal license (i) to use the Software for your own
    personal purposes which may be used in a production environment and/or (ii)
    to use the Documentation to develop your own plugins to the Software.
    "Documentation" means the how to's and instructions (instruction videos)
    provided with the Software and/or available on the XebiaLabs website or other
    websites as well as the provided API documentation, tutorial and access to
    the source code of the XebiaLabs plugins. You agree not to (i) lease, rent
    or sublicense the Software or Documentation to any third party, or otherwise
    use it except as permitted in this agreement; (ii) reverse engineer,
    decompile, disassemble, or otherwise attempt to determine source code or
    protocols from the Software, and/or to (iii) copy the Software or
    Documentation (which includes the source code of the XebiaLabs plugins). You
    shall not create or attempt to create any derivative works from the Software
    except and only to the extent permitted by law. You will preserve XebiaLabs'
    copyright and legal notices on the Software and Documentation. XebiaLabs
    retains all rights not expressly granted to You in the Personal License
    Agreement.

-->

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:security="http://www.springframework.org/schema/security"
    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
    ">

     <bean id="rememberMeAuthenticationProvider" class="com.xebialabs.deployit.security.authentication.RememberMeAuthenticationProvider"/>
     <bean id="jcrAuthenticationProvider" class="com.xebialabs.deployit.security.authentication.JcrAuthenticationProvider"/>

     <security:authentication-manager alias="authenticationManager">
          <security:authentication-provider ref="rememberMeAuthenticationProvider" />
          <security:authentication-provider ref="jcrAuthenticationProvider"/>
     </security:authentication-manager>

</beans>
