<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_10_0.dtd">

<!-- =============================================================== -->
<!-- Configure the demo-jaas webapp                                  -->
<!-- =============================================================== -->
<Configure id='wac' class="org.eclipse.jetty.ee8.webapp.WebAppContext">

  <Set name="contextPath">/ee8-test-jaas</Set>
  <Set name="war"><Property name="jetty.webapps" default="." />/ee8-demo-jaas.war
  </Set>
  <Set name="extractWAR">true</Set>

  <Set name="securityHandler">
    <New class="org.eclipse.jetty.ee8.security.ConstraintSecurityHandler">
     <Set name="loginService">
       <New class="org.eclipse.jetty.security.jaas.JAASLoginService">
         <Set name="name">Demo JAAS Realm</Set>
         <Set name="loginModuleName">demo</Set>
       </New>
     </Set>
    </New>
  </Set>

</Configure>

